Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#829 2010-07-20 19:47:04
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: zem_contact_reborn 4.0.3.20
Does this post help?
Offline
#830 2010-07-20 19:59:02
Re: zem_contact_reborn 4.0.3.20
\o/ yAy Els!
Worked 100%.
THANK you again Els for this quick fix — I’m sorry I failed to find it myself.
Cheers and gratitude! -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#831 2010-07-20 20:02:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: zem_contact_reborn 4.0.3.20
alanfluff wrote:
I’m sorry I failed to find it myself.
Don’t be sorry, who reads an entire 83-page topic to find something you’re not even sure it exists? I just happened to know it was there ;)
Offline
#832 2010-07-20 20:05:01
Re: zem_contact_reborn 4.0.3.20
:D Fair enough! I’ll try to not be so hard on myself. Tks again!
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#833 2010-07-20 22:44:27
Re: zem_contact_reborn 4.0.3.20
funtoosh wrote:
i am using an individual contact-page, and all articles i have describe team members — the title referring to their name, and a custom field specifying their email address. the contact form should generate its dropdown from the articles’ txp:title’s and txp:custom_field’s.
Okay. I assume the dropdown list in the contact form is already working and filled automatically with all those team member article titles, right?
In the PHP code, you’d have to query the textpattern table to get the custom field for the article title selected by the visitor in the contact form. The safe_field
function should help you do that:
$email = safe_field('custom_1', 'textpattern', "title='".doSlash($title)."'");
if (empty($email) or !is_valid_email($email)) $email = 'default@example.com';
Note that $email will be set to FALSE if the article title isn’t found. And This assumes that the user selected title is stored in the $title variable and the email address is in the custom_1 column in the textpattern table (first custom field).
Offline
#834 2010-07-21 13:15:34
Re: zem_contact_reborn 4.0.3.20
Hello TXP community,
Another day, another question from self-deprecating foolish Alan…
I would like to ‘up’ the SPAM protection for email delivered via zem_contact_reborn.
I’ve found I can quickly add adi_contact — which is great so far for finding emails with links in.
But is there anything else that people recommend for use with zem_contact_reborn, ideally a CAPTCHA system like ngd_recaptcha but for use with zem_contact_reborn rather than comments?
Thank you.
Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#835 2010-07-21 22:38:35
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: zem_contact_reborn 4.0.3.20
alanfluff wrote:
I would like to ‘up’ the SPAM protection for email delivered via zem_contact_reborn.
Hi Alan,
Captcha is something I’d considered for adi_contact but never got around to it – partly because I think they’re a pain in the bum to use.
The alternative is to do something simple where the user has to type in the correct answer to a question.
Adi
Offline
#836 2010-07-21 22:43:29
Re: zem_contact_reborn 4.0.3.20
Hi Adi,
Oo? That would be good too :) Would I be right in thinking your existing plugin could do that — ask a Q and insist on a specific (not revealed) answer before it allows the form to be submitted? I looked at the example but didn’t see that facility (likely I am being a clutz…).
-Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#837 2010-07-22 06:35:35
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: zem_contact_reborn 4.0.3.20
Alan, try this:
<txp:zem_contact>
<p>Who won the FA cup in 1936?</p>
<txp:zem_contact_secret name="correct_answer" value="Arsenal" />
<txp:zem_contact_text name="answer" label="Answer" required="0" />
<txp:adi_contact_validate names="correct_answer,answer" type="equal" message="Sorry, no cigar." />
<txp:zem_contact_submit label="Send message" />
</txp:zem_contact>
The Answer field is set as “not required”, otherwise you get two error messages.
Offline
#838 2010-07-22 06:45:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: zem_contact_reborn 4.0.3.20
There is also pap_contact_cleaner. Still working well for me.
Offline
#839 2010-07-22 06:57:45
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: zem_contact_reborn 4.0.3.20
Els wrote:
There is also pap_contact_cleaner. Still working well for me.
Still works well for me too!
Offline
#840 2010-07-22 12:23:49
Re: zem_contact_reborn 4.0.3.20
Brilliant!
Thanks so much Adi and Els >^_^<
I did read through the thread for pap_contact_cleaner and something (wrongly) triggered my this is not likely to be a straight install for 4.2.0 — I was obviously completely wrong, I’ve installed it already and expect it will greatly help.
Thanks Adi for the example of how (if I tried harder at reading docs, bad me) I could use zem_contact to add more anti-spam.
So, in case of interest for any other readers, for now I am using the excellent pap_contact_cleaner plugin together with the excellent adi_contact plugin and if I feel I need to add more, I will implement Adi’s comment on use of zem_contact
.
THANK you both for answers and I hope this little thread-ette is of some help to someone else.
Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline