Textpattern Forum

You are not logged in. Register | Login | Help

#1151 2012-03-16 18:02:11

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,512
Website

Re: zem_contact_reborn 4.0.3.20

Axel wrote: (btw, Axel, when quoting your name, Textile decides to get rid of you ;)

I think it should work, because it still is a one page form, so nothing gets submitted before the final step (therefore the server side error handling would work i suppose). The used jQuery code is validating the parts of the form on the client side too.

The main problem (I think) is in dealing with server-side error handling. What if you submit the form and ZCR says there’s something wrong in a form field in step 2? Ideally, I think the visitor should see step two with an error message that indicates what’s wrong. So you’d need to use javascipt to read the server-side errors (which are returned in the HTML code) and use that information to properly display the form. Most things can be checked on the client side, to avoid server-side errors… it’s mainly the email address that can’t really be checked without actually doing DNS lookups etc.

gfdesign wrote:

Could I add an CCO field?
I’d like to have in my contact form a hidden receiver.
Is it possible?

If you mean a BCC field, edit the plugin, find the line that reads $headers = 'From: '.$from. and add just below: $sep.'Bcc: <email address>'.

Offline

#1152 2012-03-20 08:47:53

Mark
Member
Registered: 2009-11-03
Posts: 6
Website

Re: zem_contact_reborn 4.0.3.20

I’ve got ZCR installed on a website I’m working on. Everything seems to work fine, the thanks page appears when I send messages using the form, but I don’t receive any messages in my inbox when I tested it. Can someone help out here?

The form is used here: http://www.rockyourstage.nl/contact/

Edit: I was too early, fixed it..

Edit: Didn’t fix it. Somehow if I send the messages to my hotmail-account it works, but if I try other emails it doesn’t. (It’s not in the spambox either.) Help?

Last edited by Mark (2012-03-21 10:19:29)

Offline

#1153 2012-04-20 14:02:36

Manaus
Member
From: Turin, Italy
Registered: 2010-10-22
Posts: 210
Website

Re: zem_contact_reborn 4.0.3.20

Hello,
I’m using zem_contact_reborn for a form where I can have up to two [different] email addresses. I need the first to be always the sender. Is that possible? I know zcr puts possibly the last email address as sender.

Thank you very much

Offline

#1154 2012-04-20 21:27:54

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,512
Website

Re: zem_contact_reborn 4.0.3.20

Use <txp:zem_contact_email> for the first email field and <txp:zem_contact_text> for the second field.

Offline

#1155 2012-04-24 22:21:45

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 149

Re: zem_contact_reborn 4.0.3.20

Is there a way to put in multiple email fields and have both be validated? For example, contact email and billing email?

Also, is there a way to display the form results on the confirmation page, for the visitor to print for their records?

Offline

#1156 2012-04-25 14:57:43

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 149

Re: zem_contact_reborn 4.0.3.20

I noticed a mention of the HTML5 placeholder attribute being included in an upcoming version of ZCR. This hasn’t already been released, has it? Would love to see that feature!

Offline

#1157 2012-04-25 15:53:37

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,188
Website

Re: zem_contact_reborn 4.0.3.20

I don’t think it has, I’ve added placeholders via jQuery in the mean time.

$('label.zemText, label.zemTextarea').remove();
$('#Name').attr('placeholder','Name');
$('#email').attr('placeholder','E-Mail');
$('#message').attr('placeholder','Message');

My Plugins

Piwik Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#1158 2012-04-25 20:45:40

ruud
Developer emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 4,512
Website

Re: zem_contact_reborn 4.0.3.20

@Alannie: yes [1], yes [1] and no.
[1] not features built into the plugin.

Offline

#1159 2012-04-26 10:11:01

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

I have a heavenly modified version of ZCR, with support for a lot of HTML5 attributes. If someone is interested, I can pack it up. As I suppose a newer version of the plugin will come with TXP 4.5, I’m not going to finish it. But for the meantime it works fine for me.

Last edited by [Axel] (2012-04-26 12:47:45)


Greetz [Axel]

Offline

#1160 2012-04-26 14:09:25

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 149

Re: zem_contact_reborn 4.0.3.20

Thanks, MattD, Ruud, and Axel. Here’s where I am:

Placeholder attribute: I’ll definitely look into this for future projects. For this particular project, the work required is a bit outside scope, so I’ve set it aside for now.

Multiple emails: I found that as long as I list the main email field (the one I want to be the “From” address) last in the form, I can add alternate email fields prior to it and they will come through in the submitted results.

Form results displaying on confirmation page: I still would like to do this, and I’m hoping it won’t require too much beyond my limited understanding of PHP. Is there a way to output the contents of the $msg array in the thanks_form I’m using?

Thanks again for your help.

Offline

Board footer

Powered by FluxBB