Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1249 2012-11-09 08:58:55
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: zem_contact_reborn 4.0.3.20
putted code below into article. it sends the data, but “thank’s” text won’t show up and form itself doesn’t disapper. any idea, why? because code is in article?
<txp:zem_contact to="name@gmail.com" label="Send answers" subject="Survey" thanks="Thank's.">
<txp:zem_contact_text label="Question 1" break="" />
<txp:zem_contact_text label="Question 2" break="" />
<txp:zem_contact_text label="Name" break="" />
<txp:zem_contact_email label="E-mail" break="" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>
Offline
#1250 2012-11-09 09:14:05
Re: zem_contact_reborn 4.0.3.20
I wonder if the apostrophe is messing it up.
Try
<txp:zem_contact to="name@gmail.com" label="Send answers" subject="Survey" thanks="Thanks.">
<txp:zem_contact_text label="Question 1" break="" />
<txp:zem_contact_text label="Question 2" break="" />
<txp:zem_contact_text label="Name" break="" />
<txp:zem_contact_email label="E-mail" break="" />
<txp:zem_contact_submit label="Send" />
</txp:zem_contact>
It’s also more grammatically correct.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#1251 2012-11-09 12:01:46
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: zem_contact_reborn 4.0.3.20
didn’t help
Offline
#1252 2012-11-09 12:07:15
Re: zem_contact_reborn 4.0.3.20
What about the full stop in the name of the ‘thanks’ form?
Offline
#1253 2012-11-09 12:16:26
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: zem_contact_reborn 4.0.3.20
found. it’s because modified textile i’m using… :(
Offline
#1254 2012-11-12 13:03:15
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: zem_contact_reborn 4.0.3.20
ruud wrote:
You can change that line to:
safe_insert('txp_discuss_nonce', "issue_time = (now() + 20 MINUTE), nonce = '$zem_contact_nonce'");
That would increase the timeout from the default 10 minutes to 10 + 20 = 30 minutes.
Does this modification still apply to the current version of the plugin?
Offline
#1255 2012-11-12 17:51:28
Re: zem_contact_reborn 4.0.3.20
@masa: yes, it still applies.
Offline
#1256 2012-11-12 18:23:28
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: zem_contact_reborn 4.0.3.20
Perfect!
Thanks, Ruud.
Offline
#1257 2012-11-14 17:33:50
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: zem_contact_reborn 4.0.3.20
Hi Ruud,
it’s not working. I tried two variations…
safe_insert('txp_discuss_nonce', "issue_time = (now() + 20 MINUTE), nonce = '$zem_contact_nonce'");
and without brackets:
safe_insert('txp_discuss_nonce', "issue_time = now() + 20 MINUTE, nonce = '$zem_contact_nonce'");
Both break the form: I now immediately get the error message saying “the form has expired”.
Any ideas?
Offline
#1258 2012-11-14 20:04:06
Re: zem_contact_reborn 4.0.3.20
Try this:
safe_insert('txp_discuss_nonce', "issue_time = date_add(now(), interval 20 minute), nonce = '$zem_contact_nonce'");
Offline
#1259 2012-11-20 08:39:34
Re: zem_contact_reborn 4.0.3.20
I’d like to suggest this small modification to a function:
function zem_contact_send_article($atts)
{
if (!isset($_REQUEST['zem_contact_send_article'])) {
$linktext = (empty($atts['linktext'])) ? zem_contact_gTxt('send_article') : $atts['linktext'];
$join = (empty($_SERVER['QUERY_STRING'])) ? '?' : '&';
$href = $_SERVER['REQUEST_URI'].$join.'zem_contact_send_article=yes';
return '<a href="'.htmlspecialchars($href).'">'.htmlspecialchars($linktext).'</a>';
}
return;
}
It might be better to be like this:
function zem_contact_send_article($atts)
{
if (!isset($_REQUEST['zem_contact_send_article'])) {
$linktext = (empty($atts['linktext'])) ? zem_contact_gTxt('send_article') : $atts['linktext'];
$join = (empty($_SERVER['QUERY_STRING'])) ? '?' : '&';
$href = $_SERVER['REQUEST_URI'].$join.'zem_contact_send_article=yes';
return '<p><a href="'.htmlspecialchars($href).'" rel="nofollow">'.htmlspecialchars($linktext).'</a></p>';
}
return;
}
{Edited to add bc.
for better code display. – Uli}
Last edited by uli (2012-11-20 11:39:46)
Offline
#1260 2012-11-26 12:56:15
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: zem_contact_reborn 4.0.3.20
why i’m getting this error?
Notice: Undefined offset: 8192 in /srv/n1/w/eoy/afatar/html/nurmkana/textpattern/lib/txplib_misc.php on line 680
Tag error: <txp:zem_contact_select label="Department" list=",Marketing,Sales,Support" /> -> : Function split() is deprecated while parsing form “tagasiside” on page “default”
textpattern/lib/txplib_misc.php(812) : eval()'d code:539 split()
textpattern/lib/txplib_publish.php:421 zem_contact_select()
textpattern/lib/txplib_publish.php:321 processTags()
textpattern/lib/txplib_misc.php(812) : eval()'d code:95 parse()
textpattern/lib/txplib_publish.php:421 zem_contact()
textpattern/lib/txplib_publish.php:334 processTags()
textpattern/lib/txplib_misc.php:1974 parse()
textpattern/publish/taghandlers.php:305 parse_form()
textpattern/lib/txplib_publish.php:421 output_form()
textpattern/lib/txplib_publish.php:321 processTags()
Notice: Undefined offset: 8192 in /srv/n1/w/eoy/afatar/html/nurmkana/textpattern/lib/txplib_misc.php on line 685
Offline