Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#541 2006-08-22 20:20:08
Re: Plug-in: zem_contact_reborn
TXP novice here. I’m trying to do a couple of things with the plugin and haven’t hit upon the correct way yet.
1. I’ve got some article text on my contact page before the zem contact form. When the message is sent I’d like that to disappear so the zem thanks message is the only text. Can this be done without using a redirect page?
2. I’d like a similar thing to happen with the send article to friend feature. When the send link is clicked and the contact form loads, how can I make the article text disappear in favor of a shortened form I’ve created?
Offline
#542 2006-08-22 20:44:38
Re: Plug-in: zem_contact_reborn
cynicalpink, try including that article text inside the zem_contact tag.
Offline
#543 2006-08-22 21:23:38
Re: Plug-in: zem_contact_reborn
RE: putting article text tag after zem contact opening tag.
I’ve styled my form with different background and text colors so including the article there looks out of place.
Offline
#544 2006-08-28 18:51:13
- Myjestic
- Member
- Registered: 2006-04-22
- Posts: 17
Re: Plug-in: zem_contact_reborn
Hello all,
that thread is very big, so i am sorry if I ask a question which is already in this topic.
I use zem_contact_reborn 4.0.3.17.
The first problem is, if I get an error message like email not correct or field missing, the error message is displayed twice.
I wrote the following to get rid of the doubles:
<code>
$alt = $zem_contact_error;
sort($alt);
$a=0;
$neu=array();
for($i=0;$i < count($alt);$i++)
{
if(current($neu) != $alt[$i])
{
$neu[$a]=$alt[$i];
end($neu) ;
$a++;
}
}
$zem_contact_error=$neu;
</code>
But I know, this is not the correct way of handling this problem ;-). Where is the problem, and how else can I solve it?
The next problem is, that the “thanks” text from the zem_contact_lang plugin isn´t shown.
<code>
…
$_POST = array();
if ($show_input == ‘yes’)
{
if ($thanks)
{
return $thanks;
}
}
…
</code>
The evil is $_POST = array()
If I remove it, the thanks message is being displayed correctly.
But I receive the mail three times ;-)
I think, both problems are a mistake in some variable declaration.On my test system everything works fine. But on my web server the mentioned problems occure.
Any hints?
Offline
#545 2006-08-28 20:34:14
Re: Plug-in: zem_contact_reborn
@Myjestic, it almost sounds as if you have the plugin installed multiple times (check the txp_plugin table with phpmyadmin to make sure).
Is the only difference the webserver and are the TXP templates/forms 100% identical on both servers?
Is the ‘thanks’ message not shown at all or should it also display what the visitor just submitted and is that the part that doesn’t show?
Last edited by ruud (2006-08-28 20:35:06)
Offline
#546 2006-08-29 09:44:11
- Myjestic
- Member
- Registered: 2006-04-22
- Posts: 17
Re: Plug-in: zem_contact_reborn
Thx, good hint.
I´ve found the mistake. But I don´t understand why it cause this error.
In my sitetemplate for the contact form I insert the following form module:
<code><txp:article form=“meta” /></code>
Okay, know the content of the form “meta”:
<code>
<meta name=“description” content=”<txp:custom_field name=“meta_description” />” />
<meta name=“keywords” content=”<txp:custom_field name=“meta_keywords” />” />
</code>
But now, how could I prevent this error?
Last edited by Myjestic (2006-08-29 09:44:46)
Offline
#547 2006-08-29 11:18:47
Re: Plug-in: zem_contact_reborn
I suspect you’re wanted to use the line <code><txp:article form=“meta” /></code> to just include the contents of form “meta” in your page and not use it to generate a list of articles (or an individual article) using the form “meta” for layout. If that’s true, then change the line to <code><txp:output_form form=“meta” /></code>. Read the <a href=“http://textbook.textpattern.net/wiki/index.php?title=Txp:output_form_/”>explanation</a> for this tag.
Offline
#548 2006-08-29 11:33:52
- Myjestic
- Member
- Registered: 2006-04-22
- Posts: 17
Re: Plug-in: zem_contact_reborn
Damn!
That´s it! My fault!
Thanks a lot ruud. Now everything works fine.
Offline
#549 2006-08-29 21:08:28
- starzabove
- Member
- Registered: 2004-04-13
- Posts: 76
Re: Plug-in: zem_contact_reborn
I just upgraded a client from zem_contact to zem_contact_reborn along with the anti-spam plug-in due to the site being spammed.
I figured out to change ‘mailto’ to ‘to’ after it broke all of the contact forms, but now all of the forms with textareas are breaking the styling of the navigation IN INTERNET EXPLORER ONLY.
See example here:
http://www.athomeresources.com/test
Any ideas?
Thanks.
Edited to add the detail that this is breaking ONLY in Internet Explorer – I know, it figures, but alas, it still needs to be fixed.
Edited again to say that I’ve narrowed it down to all column widths more than 20. I just set each textarea to cols=“20”, even in textareas where I had not assigned any width to ‘cols’, and it is at least working for now, and I changed the link for you to check out by putting put up a test page, so that I don’t have to leave a ‘live’ page on the site all wonky. Thanks.
Last edited by starzabove (2006-08-29 21:44:53)
90+ Textpattern installs and still going…
Offline
#550 2006-09-01 14:37:20
- freshface
- Member
- Registered: 2006-08-23
- Posts: 49
Re: Plug-in: zem_contact_reborn
Is it possible to choose a recipient?
For example with a dropdown menu.
Offline
#551 2006-09-01 14:46:55
Re: Plug-in: zem_contact_reborn
Freshface,
That’s not available, last I checked.
You can effect a note in the email that tells someone where to forward it to,
if that helps. :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#552 2006-09-01 14:49:06
- freshface
- Member
- Registered: 2006-08-23
- Posts: 49
Re: Plug-in: zem_contact_reborn
thx ma_smith that helps a bit :)
Offline