Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#937 2011-01-11 16:24:35

qp2wd
Member
Registered: 2011-01-11
Posts: 24

Re: zem_contact_reborn 4.0.3.20

Has anyone else had problems with this plugin under Godaddy hosting? I haven’t been receiving any of the email it sends, despite verifying the delivery email address and not receiving any errors prior to sending. Godaddy says there’s nothing they can do about it as they see no problems on their end, and they suggest that I use their mail plugin, which I really don’t want to do. So. If anyone has been able to successfully send and receive mail using this plugin and Godaddy, I’d love to know. Did you have to do anything special, or can this be chalked up to Godaddy’s incredibly slow email system?

EDIT: After digging around for a bit, I was able to locate a post in this thread mentioning TXP’s SMTP envelope setting as a possible solution when emails aren’t being received. I set it and I’m now correctly receiving email from zem_contact_reborn. Huzzah!

Last edited by qp2wd (2011-01-11 21:08:36)

Offline

#938 2011-02-16 00:46:30

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: zem_contact_reborn 4.0.3.20

Ruud, for txp:zem_contact_email how about making input type="email" … for mobile phones, etc!

Offline

#939 2011-02-16 03:35:00

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: zem_contact_reborn 4.0.3.20

nardo wrote:

Ruud, for txp:zem_contact_email how about making input type="email" … for mobile phones, etc!

I’d like that too. Browser-wise, it’s backwards-compatible, since the fallback for unknown input types is text. Unfortunately this would break compatibility for anyone trying to validate under XHTML, since the only valid types for XHTML 1.0 Strict are “text”, “password”, “checkbox”, “radio”, “submit”, “reset”, “file”, “hidden”, “image”, and “button”.

Offline

#940 2011-02-16 03:45:16

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: zem_contact_reborn 4.0.3.20

johnstephens wrote:

I’d like that too. Browser-wise, it’s backwards-compatible, since the fallback for unknown input types is text. Unfortunately this would break compatibility for anyone trying to validate under XHTML, since the only valid types for XHTML 1.0 Strict are “text”, “password”, “checkbox”, “radio”, “submit”, “reset”, “file”, “hidden”, “image”, and “button”.

I thought that cult had had its day!

Offline

#941 2011-02-16 15:47:04

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

HTML5 is still a working draft, not final.

Offline

#942 2011-02-17 17:26:35

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: zem_contact_reborn 4.0.3.20

hi there,
i’ve got a problem with the expiry of contact forms.

first of all, why do they expire? i suppose it is to keep spam down? the expiry appears to be specified here:
header('Expires: '.gmdate('D, d M Y H:i:s',time()+600).' GMT');
meaning it takes 600 sec. to expire?

i’m building a single page website that contains, all in one-style, a contact form hidden in a toggled div, so an expired form is a bad thing here, for once.

cheers! -f

Offline

#943 2011-02-17 19:49:42

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

The Expires header only affects page caching. This doesn’t affect form submission. What you’re looking for is this lines like this one:

safe_delete('txp_discuss_nonce', 'issue_time < date_sub(now(), interval 10 minute)');

If you’re also using comments on your website, do not change this line, because it would affect the comment nonces as well. You’d have to change this query instead:

safe_insert('txp_discuss_nonce', "issue_time = now(), nonce = '$zem_contact_nonce'");

Offline

#944 2011-02-17 21:59:29

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

Assuming you have code like this in your form:

<txp:zem_contact_secret name="secret" value="topsecret" />

You could do this (not tested, and I’m a bit puzzled why your code doesn’t work):

register_callback('pax_myFunction','zemcontact.submit');

function pax_myFunction()
{ global $zem_contact_from, $zem_contact_values;

if ($zem_contact_values['secret'] == 'topsecret') { file_put_contents('testFile.txt', $zem_contact_from.n, FILE_APPEND|LOCK_EX) or die ("couldn't write to file"); }
}

This works perfectly as long as every contact form on the site includes a field named `secret`. But if I create a form that isn’t meant to interact with the text files and omit a field named `secret`, I get a PHP error. Is there a way to nest if ($zem_contact_values['secret']== within another conditional that checks if the named field exists before executing?

Offline

#945 2011-02-18 12:38:36

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: zem_contact_reborn 4.0.3.20

ruud schrieb:

The Expires header only affects page caching. This doesn’t affect form submission. What you’re looking for is this lines like this one:
safe_delete('txp_discuss_nonce', 'issue_time < date_sub(now(), interval 10 minute)');
If you’re also using comments on your website, do not change this line, because it would affect the comment nonces as well. You’d have to change this query instead:
safe_insert('txp_discuss_nonce', "issue_time = now(), nonce = '$zem_contact_nonce'");

danke je wel, ruud, i’ll play around with these settings!

Offline

#946 2011-02-18 19:57:36

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

john, try changing:

if ($zem_contact_values['secret'] == 'topsecret')

into

if (isset($zem_contact_values['secret']) and $zem_contact_values['secret'] == 'topsecret')

Offline

#947 2011-02-19 07:11:18

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

Re: zem_contact_reborn 4.0.3.20

Hi Ruud how are you?

Just a question. Is it possible to hide a secret value into the message send from zem_contact? I have a checkbox into my form “Tick that box to prevent spam” and the response is shown into the message : not very sexy ;)

Have a nice day,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#948 2011-02-19 20:37:40

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

Patrick, have you considered simply using pap_contact_cleaner?

Offline

Board footer

Powered by FluxBB