Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#181 2008-01-10 13:47:40
Re: zem_contact_reborn 4.0.3.20
masa wrote:
On a related note, why are these hidden fields generated? Could it be because I chose the option to mail a copy to the sender?
If you were using zem_contact_reborn, then the hidden fields would be purely as an anti-spam measure and as a way to identify which form was submitted. The copy-to-sender functionality does not show up anywhere in the HTML code.
Offline
#182 2008-01-15 15:56:07
Re: zem_contact_reborn 4.0.3.20
Hello All,
Technical question:
I have a “subscribe” form at the bottom of a page.
I’m using the redirect=""
feature to show a success message on another page.
Is there a way to do the same thing with errors?
Currently, if the user fills out the form and it has errors, they get written in place and kind of mess things up.
I’d like to have errors show on the redirect=""
page.
Does this sound possible?
Thanks.
—
Tom
Offline
#183 2008-01-15 16:16:34
Re: zem_contact_reborn 4.0.3.20
No, because if errors occur, the user has to correct the errors on the same page where the form is also shown.
Offline
#184 2008-01-15 16:24:37
Re: zem_contact_reborn 4.0.3.20
Thanks Ruud…that’s kind of what I thought.
How about a way to show errors somewhere else on the page?
I was reading the plugin help…but I’m not 100% clear on that.
—
Tom
Offline
#185 2008-01-15 16:45:15
Re: zem_contact_reborn 4.0.3.20
Yes, there is, have a look at the show_errors
and show_input
attributes of the zem_contact tag. See also this advanced example in the plugin help.
Offline
#186 2008-01-15 16:55:24
Re: zem_contact_reborn 4.0.3.20
Thanks Ruud,
Ah…looks like it will do exactly what I need.
I saw it earlier, but wasn’t sure if that’s what it was for.
Had I just read carefully…I would have known. : )
Cheers!
—
Tom
Offline
#187 2008-01-15 22:18:27
Re: zem_contact_reborn 4.0.3.20
Forgive me…I’m a little dense today. Can’t seem to get this to do what I want.
I’m trying to get the errors to show in a particular <div>
which I can then position separate from the form.
Here’s what I have:
<txp:zem_contact to="xxx[at]xxxxx.com" label="" copysender="1" subject="Subscription to newsletter." redirect="thank-you">
<txp:zem_contact_text break="" name="zemSubscriberName" label="Name" />
<txp:zem_contact_email break="" name="zemSubscriberEmail" label="Email Address" />
<input type="hidden" name="zemSubscriberLists" value="public" />
<input class="join" id="zemSubmit" name="zem_contact_submit" type="image" src="/images/join.gif" value="Send" />
</txp:zem_contact>
I like to have something like this right below it:
<txp:chh_if_data>
<div class="errors">
<Some tags here to show ZCR errors>
</div>
</txp:chh_if_data>
Am I going about this the wrong way?
I can’t seem to make this work right.
Thanks for the patience.
—
Tom
Last edited by renobird (2008-01-15 22:20:16)
Offline
#188 2008-01-15 22:58:10
Re: zem_contact_reborn 4.0.3.20
Put this in a form (for example one called ‘zcr’):
<txp:zem_contact_text break="" name="zemSubscriberName" label="Name" />
<txp:zem_contact_email break="" name="zemSubscriberEmail" label="Email Address" />
<txp:zem_contact_secret name="zemSubscriberLists" value="public" />
<input class="join" id="zemSubmit" name="zem_contact_submit" type="image" src="/images/join.gif" value="Send" />
Where you want the form to display:
<txp:zem_contact form="zcr" to="xxx[at]xxxxx.com" label="" copysender="1" subject="Subscription to newsletter." redirect="thank-you" show_error="0" />
Where you want to show the errors:
<txp:zem_contact form="zcr" to="xxx[at]xxxxx.com" label="" copysender="1" subject="Subscription to newsletter." redirect="thank-you" show_input="0" />
Offline
#189 2008-01-16 02:37:40
Re: zem_contact_reborn 4.0.3.20
Ruud,
Thank You! My skull was a little thicker than normal today. : )
Now that I see your example..I realize it’s really pretty straight forward.
I was totally over-thinking it.
Thanks again for the help.
Cheers!
—
Tom
Offline
#190 2008-01-16 11:03:46
Re: zem_contact_reborn 4.0.3.20
I am experimenting with the postmaster plugin and I have a validation problem which might be caused by the zcr one
Here is the error and this is the code I am using provided by ben
<txp:zem_contact to="youremail@yourwebsite.com" >
<txp:zem_contact_email name="zemSubscriberEmail" label="Your Email:" />
<txp:zem_contact_checkbox name="zemUnSubscribe" label="Unsubscribe:" required="no" />
<txp:zem_contact_submit />
</txp:zem_contact>
Any ideas?
>Edit I am using v 4.0.3.20 of zcr and v 0.4 of postmaster
Last edited by colak (2008-01-16 11:12:53)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#191 2008-01-16 11:36:52
Re: zem_contact_reborn 4.0.3.20
Yiannis, you can’t put a form tag inside a paragraph tag (use one of these instead: APPLET, BLOCKQUOTE, BODY, CENTER, DD, DEL, DIV, FIELDSET, IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH)
Offline
#192 2008-01-16 12:57:44
Re: zem_contact_reborn 4.0.3.20
That did it!
Thanks ruud. As usual, I didn’t think that it would be that simple:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline