Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#256 2008-03-11 17:46:04
Re: zem_contact_reborn 4.0.3.20
You could try using the ‘copyself’ attribute on the zem_contact tag. That would send an email to the person who filled out the form.
Offline
#257 2008-03-14 15:54:56
- crowleyr
- Member
- From: Tallinn
- Registered: 2006-04-04
- Posts: 27
Re: zem_contact_reborn 4.0.3.20
hej,
I have ZCR installed. http://grainnecrowley.com/test (unstyled)
However when I send a message this error appears Tag error: <txp:zem_contact to=“mail AT grainnecrowley.com” /> -> Warning: mail(): Bad parameters to mail() function, mail not sent. on line 230
PHP Mail test works fine:
http://grainnecrowley.com/mail.php
any ideas?
thanks
Offline
#258 2008-03-14 16:19:13
Re: zem_contact_reborn 4.0.3.20
What are you using as Subject, recipient and sender email address? Feel free to contact me by email if you don’t want to publish that here on the forum.
Offline
#259 2008-03-17 23:44:43
- christopherTate
- New Member
- Registered: 2008-03-17
- Posts: 4
Re: zem_contact_reborn 4.0.3.20
Hellooo :D
Great plugin. Works wonderfully.
I’m currently using the plugin to run a site survey and wanted to know how to do the following:
Change the redirect page – at the moment it returns the user to the same page, sans survey, how can I forward them to a different page in my site?
Dynamic content / return email – I’d also like to email my users, thanking them for their assistance, and include some sort of dynamically generated code for rendering a discount coupon of sorts. It would be great if, upon completion of the survey, the user received an email with their username that thanked them and included a rand number/code.
Can someone help me out?
Thanks!
Offline
#260 2008-03-18 00:50:30
Re: zem_contact_reborn 4.0.3.20
Redirection is explained in the plugin documentation (see help link on the plugins tab). It’s the ‘redirect’ attribute in the <txp:zem_contact /> tag that you’re looking for.
The dynamic return mail can be done with an add-on plugin (one you’d have to write) that would hook in to the zemcontact.submit callback event.
Offline
#261 2008-03-18 01:43:35
- christopherTate
- New Member
- Registered: 2008-03-17
- Posts: 4
Re: zem_contact_reborn 4.0.3.20
Thank you!
Offline
#262 2008-03-18 10:46:09
- crowleyr
- Member
- From: Tallinn
- Registered: 2006-04-04
- Posts: 27
Re: zem_contact_reborn 4.0.3.20
hej,
I have managed to style .zemTextarea
However, I am struggling to style the overall .zemContactForm namely font size for labels.
Also how do I remove “Contact” string?
http://grainnecrowley.com/contact
thanks,
RC
Offline
#263 2008-03-18 11:05:32
Re: zem_contact_reborn 4.0.3.20
The ‘contact’ string can be removed by setting the attribute label="" in the zem_contact tag.
You can style font size of the labels like this:
label { font-size: 90%; }
Offline
#264 2008-03-21 04:26:53
- christopherTate
- New Member
- Registered: 2008-03-17
- Posts: 4
Re: zem_contact_reborn 4.0.3.20
Ignore this message, I made a silly error…. m( .)_(. )m
Last edited by christopherTate (2008-03-21 04:53:06)
Offline
#265 2008-03-27 13:57:51
Re: zem_contact_reborn 4.0.3.20
When using $evaluation -> add_zemcontact_status(1); to prevent ZCR from submitting is there a way to change the error message that gets returned? I’m not using it to detect spam and I would like to give the user accurate information about why the form did not submit.
Maybe something like:
$evaluation -> add_zemcontact_status(1);
$zemErrorMsg = 'Insightful and informative error message.';
Thanks
Offline
#266 2008-03-27 14:08:57
Re: zem_contact_reborn 4.0.3.20
If you only have one possible error message, then you can change it in zem_contact_lang.
Offline
#267 2008-03-27 18:38:08
Re: zem_contact_reborn 4.0.3.20
As I thought about things a bit more I realize I was asking the wrong question. I’m not checking for spam but I do want the ability to prevent the form from submitting and to signal various errors. Is there a way to pass errors back to ZCR? (There is the possibility for multiple errors so it doesn’t seem like changing the language file is an option.)
Offline
#268 2008-03-27 19:14:12
Re: zem_contact_reborn 4.0.3.20
Jason, you could do this without even editing ZCR: create a plugin that offers a tag like <txp:jdy_zem_contact_checks /> and place that tag at the end of your zem_contact form (inside the form). That way, the taghandler for that tag is called after all the earlier form tags have been processed. Since the $zem_contact_error and $zem_contact_form/values/labels arrays are globally accessible, you can read the form values/labels and use those to add errors based on the additional checks you want to perform. The tag itself should return an empty string.
Offline
#269 2008-03-27 19:55:21
- Logoleptic
- Plugin Author

- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: zem_contact_reborn 4.0.3.20
Ruud, your response got me thinking a bit. Could a similar approach be used to extend the validation capabilities of ZCR with tools like checking for proper date format? How would one go about assigning checks to particular fields?
Ordinarily I’d do that kind of validation with JavaScript if I’m using ZCR, but doing it on the server has definite advantages.
Offline
#270 2008-03-27 19:57:35
Re: zem_contact_reborn 4.0.3.20
Sure, that’s possible. Assigning checks to specific fields might be done by specifying which fields to check in the attribute of the tag that does the validating, for example: <txp:abc_zem_contact_check_date name="field1,field3" />
Offline