Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#949 2011-02-20 09:51:49
Re: zem_contact_reborn 4.0.3.20
Ruud, I’m using pap_contact_cleaner. Do you think it’s enough to prevent spammers, and I can delete the actual “Are you human?” checkbox?
Cheers,
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
#950 2011-02-20 13:34:03
Re: zem_contact_reborn 4.0.3.20
pap_contact_cleaner uses two hidden text input fields, which only spammers would fill out. If you prefer to use an additional checkbox (invisible, so only a spambot would check the box), it should be trivial to modify the pap_contact_cleaner to do that as well.
Offline
#951 2011-02-21 13:35:23
Re: zem_contact_reborn 4.0.3.20
Hi,
I’m using the ZCR for a send article form, and can’t figure out how to change the subject. Apparently writing subject="example"
in the <txp:zem_contact> tag does’nt work. I’ve located this code in the plug-in: $subject = str_replace('&', '&', $thisarticle['title']);
But I can’t figure out what to write, in order to change the subject to for instance the site title.
Any help is highly appreciated!
Regards
Snorre
Last edited by Depot 1 (2011-02-21 13:36:15)
Offline
#952 2011-02-21 13:45:25
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,311
Re: zem_contact_reborn 4.0.3.20
Have you looked at this section of the documentation?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#953 2011-02-21 14:11:04
Re: zem_contact_reborn 4.0.3.20
I just tried it, and it does’nt seem to work within the send article form. The subject of the email is still the article title – not the subject chosen in the subject field.
Offline
#954 2011-02-21 15:28:34
Re: zem_contact_reborn 4.0.3.20
I tried to simply remove the aforementioned line in the plug-in code, and use subject="example"
in the <txp:zem_contact> tag. And it actually worked. Probably not the best way to do it, but never mind …
Thanks anyway Uli, for your suggestion!
Offline
#955 2011-02-22 03:22:50
Re: zem_contact_reborn 4.0.3.20
Ruud, you solved my problem again— THANK YOU!
Now, I’m trying to do this :
mrdale wrote:
[mem_postmaster] doesn’t do [double opt-in] out of the box, but because it uses the ZCR API you could make this happen in the following way…
1. Make a signup ZCR form that does no signup but that copies the sender.
2. Include in that form a link to a second form with the email address and other info in urlvars
Very cool idea, but I’m stuck on step two: How do I extract the email address (or any ZCR field) into a secret field for the email?
Here’s what I have in my initial ZCR form:
<txp:zem_contact_email label="My email address"/>
<txp:zem_contact_secret label="Click here to confirm" name="verify" value='http://mysite.tld/subscribe-confirm/?verify=????'/>
<txp:zem_contact_submit label="Send Confirmation"/>
How do I get the email address entered in the zem_contact_email
field into the value for the URL? Am I doing this all wrong? Is there another way to extract the email address into a URL that appears in the message? Should I somehow get this logic into a plugin?
Thanks in advance!
Offline
#956 2011-02-22 11:14:15
Re: zem_contact_reborn 4.0.3.20
John, something like this perhaps:
<txp:zem_contact_email label="My email address"/>
<txp:zem_contact_secret label="Click here to confirm" name="verify">http://mysite.tld/subscribe-confirm/?verify=<txp:php>global $zem_contact_from; echo $zem_contact_from;</txp:php></txp:zem_contact_secret>
<txp:zem_contact_submit label="Send Confirmation"/>
Offline
#957 2011-02-22 16:50:44
Re: zem_contact_reborn 4.0.3.20
Thanks again, Ruud! You are awesome.
Now I just have to figure out why everything works like clockwork on my dev server but the publish server throws a “file_put_contents Failed to open stream: Permission denied” error. But for that, I’m in contact with the hosting provider’s support line.
Offline
#958 2011-02-23 09:04:16
Re: zem_contact_reborn 4.0.3.20
Using Textpattern 4.3.0 and <txp:zem_contact_select label="Adulti" list=",1,2,3,4" />
this error appears:
Errore tag: <txp:zem_contact_select label="Adulti" list=",1,2,3,4" /> -> : Function split() is deprecated on line 539
Why?
Offline
#959 2011-02-23 19:11:34
Re: zem_contact_reborn 4.0.3.20
Because you’re using PHP 5.3 and are probably running the website in debug mode.
It’s not an error, just a warning, which you can ignore till PHP 6 is released.
Offline
#960 2011-02-24 08:08:20
Re: zem_contact_reborn 4.0.3.20
Thanks Ruud!
Offline