Support Forums

reCaptcha for friendmail.tpl

This is a discussion on reCaptcha for friendmail.tpl within the Customizations forums, part of the Developer Forums category; I have reCaptcha module installed and working on my contact forms (v4.2 developer, default theme) but I'd like to also ...


Go Back   68 Classifieds Forums > Developer Forums > Customizations

Reply
 
Thread Tools Display Modes
Old 10-14-2010, 08:14 PM   #1
Customer
 
Join Date: Aug 2008
Posts: 9
Rep Power: 0
John_6x6 is on a distinguished road
Default reCaptcha for friendmail.tpl

I have reCaptcha module installed and working on my contact forms (v4.2 developer, default theme) but I'd like to also have it on the "tell-a-friend" form too. Trying it myself, I installed the following modulehook function copied over from the userjoin.tpl file onto the friendmail.tpl file:

PHP Code:
{modulehook function="tpl_userjoin_details" options=""
It does put the captcha where I want it on the friendmail.tpl form now but it doesn't validate the captcha words typed in. It will take any work I put in there and still allow a post. I realize there is a disconnect and I'm only displaying the captcha form but have no idea how to fix.

Anyone have an idea how to do this?
__________________
John_6x6
Version: v4.2 Developer
Template: default
John_6x6 is offline   Reply With Quote
Old 10-14-2010, 08:28 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,329
Rep Power: 83
seymourjames is a jewel in the rough
Default

Personally I like others just remove the friendmail completely and only allow people to communicate in the normal way through the contact form (with or without capture on it). Seems like you are making it harder than it needs to be.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 10-14-2010, 10:32 PM   #3
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,308
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Unfortunately, that is not going to work. Both of the contact forms (contactus and contact) have a modulehook in the php file for the submit the form. Then each of those also have a module hook in the template file which displays the form. Those are two separate functions in the reCaptcha module.

The userjoin is different and has it's own function in the module specifically for the userjoin php file.

It could certainly be done, but would require modification to the php for friendmail.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-15-2010, 10:57 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,329
Rep Power: 83
seymourjames is a jewel in the rough
Default

Quote:
Originally Posted by seymourjames
Personally I like others just remove the friendmail completely and only allow people to communicate in the normal way through the contact form (with or without capture on it). Seems like you are making it harder than it needs to be.
Or

Only show the email friend link to people who are registered. It may cut down on some abuse.

Or

Remove the link/ capability completely
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Tags
friendmail.tpl , recaptcha

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
ReCaptcha seymourjames TemplateCodes 28 03-07-2010 08:13 AM
friendmail - subject shown as ? haxxy Technical Support 3 11-23-2009 09:14 AM
reCaptcha Module Eric Barnes Modification Release 5 12-19-2008 04:58 PM
friendmail.tpl, any problems? YourPalAl Technical Support 9 06-02-2008 07:04 PM
Privatemessage.tpl and friendmail.tpl YourPalAl Technical Support 0 06-01-2008 11:59 AM


All times are GMT -4. The time now is 01:58 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0