Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#553 2006-09-05 09:06:20
- Myjestic
- Member
- Registered: 2006-04-22
- Posts: 17
Re: Plug-in: zem_contact_reborn
ruud schrieb:
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.
The problem is not solved :-(
I must insert the form via <code><txp:article form=“meta” /></code> to receive the custom fields (metatags) for each individual article. But if I do so, the mentioned problems occur. How can I solve the problem?
Last edited by Myjestic (2006-09-05 09:07:53)
Offline
#554 2006-09-05 20:37:54
Re: Plug-in: zem_contact_reborn
Hmm… interesting. Would you be willing to email the contents of the contact template and the meta form to me (email link on left side). Makes it easier to do some testing to see what causes this.
Which version of TXP are you using (check the revision number on the diagnostics tab) and which version of zem_contact_reborn do you use?
==> For those interested: Myjestic had the zem_contact_reborn form inside an article. Apparently the form was parsed three times, because there were three txp:article tags on the page, each for a different purpose, although only one (the second) outputted the actual form. Had it been the first txp:article tag that outputted the form, there wouldn’t have been a problem (shown by removing the txp:article for the meta form). Had it been the third txp:article showing the form, the error messages would have shown thrice instead of twice. Not removing the $_POST array caused the mail to be sent thrice, because that’s how many times the form was parsed. On success, the $_POST array is normally cleaned, so any second or further parsing of the contact form would have had no result and shown a new empty form. That’s also why there was never a thank you message, because that could only have been shown during the first parse.
Last edited by ruud (2006-09-10 17:52:40)
Offline
#555 2006-09-06 08:43:27
- Myjestic
- Member
- Registered: 2006-04-22
- Posts: 17
Re: Plug-in: zem_contact_reborn
@ ruud
I solved the problem by using the plugin “jad_metadata” from Joel Dueck instead of the “meta” form.
Thanks for your help.
Myjestic
Offline
#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