Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#556 2006-09-06 12:36:33
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
Re: Plug-in: zem_contact_reborn
Hi,
this is a very nice plugin. Thanks.
I have a question about the thanks_form. It is possible to show a specific thanks form depends on choice of a drop down selection?
I have a selection with 3 items. If selection 1 ist selected the thanks form diplays “Thank you” and if selection 2 ist selected in the thanks form something like “Thank you for your interest”.
*
Offline
#557 2006-09-06 13:58:56
Re: Plug-in: zem_contact_reborn
@bartekk, that is not possible without editing the plugin and adding some extra code, for example (not tested):
<notextile><pre><code>
switch($zem_contact_form[‘SELECT_LABEL’]) {
case ‘item 1’: $thanks = ‘message 1’; break;
case ‘item 2’: $thanks = ‘message 2’; break;
case ‘item 3’: $thanks = ‘message 3’; break;
}
</code></pre></notextile>
Insert that just above the line that reads <code>if ($thanks_form)</code>
Note that I don’t use a separate thanks_form for each message, but simply hardcoded the messages in the plugin. If you prefer using forms, then replace $thanks with $thanks_form and let ‘message 1/2/3’ be the names of the forms you want to use. Item 1/2/3 are options in the select menu. They have to match the ones you set for the select menu. SELECT_LABEL should be replaced with the label of the select menu.
Offline
#558 2006-09-06 15:54:13
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
Re: Plug-in: zem_contact_reborn
It works fine. thank you ruud
Offline
#559 2006-09-11 22:02:19
Re: Plug-in: zem_contact_reborn
awesome plug-in!
i have two small requests though:
1) Is it possible to somehow reorder the LABEL and INPUT fields for checkboxes? i.e. i would prefer the LABEL to come before the CHECKBOX input
2) Is it possible to make a multiple selection SELECT field? (rather than a single dropdown – but a multi select using CTRL)
otherwise it is a definite improvement over the original zem_contact that i was using until yesterday!!
cheers,
Luke
Last edited by lukepermsn (2006-09-13 13:38:40)
“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee
Offline
#560 2006-10-03 04:17:07
Re: Plug-in: zem_contact_reborn
Suddenly, the plug-in stopped working in two sites (both hosted in the same hosting company!)
Very problably that this is a problem in the servers, but I will comment it here here for any thoughts.
The problem is: the contact form is submitted OK (I get the “thank you for contacting…” message) but the e-mail never arrives! (again, it used to work until yesterday)
The “weird” thing is that “copysender” option is set to “yes”, and the sender (= the visitor that submitted the form) receives his copy of the message, but I dont receive the e-mail as the receipt of the contact form.
I’m asking to the hosting help desk, but nothing yet…
Offline
#561 2006-10-03 19:44:12
Re: Plug-in: zem_contact_reborn
This must be a problem with your own mail server, it has nothing to do with the plugin.
My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)
Offline
#562 2006-10-03 20:45:16
Re: Plug-in: zem_contact_reborn
Well.
That’s what I have found:
I have zem_contact_reborn installed in three different sites and all in the same hosting company but in different servers.
They used to work fine until yesterday, when they stopped working suddenly.
I have found that two contact forms arent sending the e-mails but one is still working fine.
Scenario:
- site 1: one.com > zem_contact_reborn sends e-mail to info@one.com
- site 2: two.com > zem_contact_reborn sends e-mail to info@two.com
- site 3: three.com > zem_contact_reborn sends e-mail to info@three.com
- one.com > e-mail account is managed by default hosting mail server -> e-mail arrives safe :)
- two.com & three.com > e-mail accounts are managed by GMail Hosted -> e-mail doesn’t arrive :(
What I have tried:
For two.com and three.com zem_contact_reborn forms, I have changed the e-mail receipt to one e-mail account that is “outside” of the domain (to a hotmail account, for example).
- two.com & three.com > change zem_contact_reborn form so it sends mails to passionale@hotmail.com -> e-mail arrives :)
- weird: passwords e-mails (sent from Admin > Configuration tab) are being succesfully sent for two.com but not for three.com. I have no-knowledge, but I think that this means that there is a problem with the ¿service? that sent mails from webbased applications. I dont know why it affects three.com but not two.com (both are “problematic” with zem_contact_reborn, although they are in different servers in the same hosting)
What I conclude is:
- I would bet it’s a hosting problem.
- Zem_contact_reborn works with “external” addresses but doesnt work when I specifying a domain account (managed with GMail).
- I hate my hosting company
- I have explained this to them (in my native language, which I can write far better than english…) but I think they didnt understand.
- I’m still testing things suggested by the help desk. I will come back to report.
thanks and excuse my english.
Offline
#563 2006-10-03 21:04:27
Re: Plug-in: zem_contact_reborn
One of the sites has been already fixed.
:D
Offline
#564 2006-10-10 12:56:30
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
Re: Plug-in: zem_contact_reborn
Hi,
I have a question again. I want to use the to_form but I continue to get the error “To” address is missing.
I am using following form:
<code><txp:zem_contact to_form=“to_form” >
<txp:zem_contact_text label=“name” />
<txp:zem_contact_email />
<txp:zem_contact_textarea label=“Message” />
<txp:zem_contact_submit label=“send” />
</txp:zem_contact></code>
<br >
form=to_form<br />
<code>myfirstadress@mydomain.com mysecondadress@myotherdomain.com</code>
<br >
What could be the reason why it doesn’t work?
thx
Offline
#565 2006-10-10 14:16:31
Re: Plug-in: zem_contact_reborn
Try <code>to_form=“my_to_form”</code> where the ‘my_to_form’ form contains just an email address.
If that works, then try more ‘advanced’ things like multiple addresses.
Multiple addresses should be separated by a comma: <code>myfirstadress@mydomain.com,mysecondadress@myotherdomain.com</code>
But if that’s all you need, then don’t use a form, but use the ‘to’ attribute of zem_contact: <code>to=“myfirstadress@mydomain.com,mysecondadress@myotherdomain.com”</code>, which is easier and won’t show up in the HTML code the visitor sees.
Offline
#566 2006-10-10 14:30:07
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
Re: Plug-in: zem_contact_reborn
I tried it with one email adress and it still doesn’t work to.
The alternative works fine, but I want to hide the second email adress, so I will try with the copysender attribute.
thx
Offline
#567 2006-10-12 13:21:45
- Finnish
- Member

- From: Russia, Vladivostok
- Registered: 2005-11-02
- Posts: 13
Re: Plug-in: zem_contact_reborn
how to cope with SMTP authentication when it’s required?
have a nice day :)
Offline
#568 2006-10-12 13:46:05
Re: Plug-in: zem_contact_reborn
zem_contact_reborn uses PHP’s mail() function, which doesn’t support SMTP authentication. You’d have to edit the plugin and use something like <a href=“http://email.about.com/od/emailprogrammingtips/qt/et073006.htm”>PEAR Mail</a> to be able to use SMTP authentication. Do you really need this?
Offline
#569 2006-10-12 14:10:51
- Finnish
- Member

- From: Russia, Vladivostok
- Registered: 2005-11-02
- Posts: 13
Re: Plug-in: zem_contact_reborn
yes i do really need it. and solved it. uses PHPMailer class. it works! just replaced mail() function with $mail->Send() and few tweaks and it works!
have a nice day :)
Offline
#570 2006-10-16 10:46:03
Re: Plug-in: zem_contact_reborn
I’m having problems with zem_contact and I can’t see an answer here, although it is possible that I’ve missed something because this thread is so long.
Bascially, I’ve used this plugin for all of my sites (15+), and everything was ok until I recently started to get complaints that email messages were going missing. I’ve had a look, and it appears that out of all my sites, two or three have stopped sending emails altogether. I’m using the same version of txp (4.03) and zem_contact_lang (4.0.3.02) and zem_contact_reborn (4.0.3.16) plugins, and all the sites are hosted on the same machine at txd.
The sites that are broken no longer display the ‘message sent’ notification.
Working Site:
http://losource.net/contact
Broken Site:
http://pagaian.org/contact/rob-blake
I’ve even used the same forms on each.
Any clues gratefully received!
Last edited by treb0r (2006-10-16 10:47:39)
Offline