#1  
Old 06-12-2008, 05:56 AM
Raymond Benc's Avatar
Raymond Benc Raymond Benc is offline
phpFoX Developer
 
Join Date: Aug 2005
Posts: 3,860
Thanks: 77
Thanked 1,160 Times in 309 Posts
Feedback Score: (3)
Raymond Benc has disabled reputation
Default [1.6+] phpFox reCAPTCHA Plug-in

This modification will replace the default phpFox Captcha found on the "sign up" and "contact us" form.

What is reCAPTCHA?
Code:
Content visible to registered users only.
Learn more about reCAPTCHA: http://recaptcha.net/learnmore.html

Live Demo: http://sandbox.phpfox.com/natio/signup/

:: Steps to Install ::

1) Sign up at ReCaptcha for a free account: http://recaptcha.net/whyrecaptcha.html

Once you have signed up make sure to add a site so you get your API keys which will be needed later when configuring the script.

2) Log into your phpFox Admin CP and navigate to:
Code:
Content visible to registered users only.
Set the following option to "No":
Code:
Content visible to registered users only.
3) Download the ZIP attachment and Unzip to your computer.

4) Open the file "plugins/recaptcha/config.php.new" with your favorite text editor.

Look for:
Code:
Content visible to registered users only.
Replace that with your Public Key that ReCaptcha provided you earlier in Step 1.

Next look for:
Code:
Content visible to registered users only.
Replace that with your Private Key that ReCaptcha provided you earlier in Step 1.

Save and close the file.

5) Rename the file:
Code:
Content visible to registered users only.
to
Code:
Content visible to registered users only.
6) Upload the folder "plugins/" to your phpFox root directory.

7) On your server open the file: /design/templates/default/_modules/Account/Signup.html

Look for:
Code:
Content visible to registered users only.
Above that add:
Code:
Content visible to registered users only.
8) Next open the file: /include/modules/Account/classes/PhpFox_ComponentSignup.class.php

Look for:
Code:
Content visible to registered users only.
Above that add:
Code:
Content visible to registered users only.
9) Open the file: /design/templates/default/_modules/Site/ContactUs.html

Look for:
Code:
Content visible to registered users only.
Replace with:
Code:
Content visible to registered users only.
10) Open the file: /include/modules/Site/classes/PhpFox_ComponentContactUs.class.php

Look for:
Code:
Content visible to registered users only.
Replace with:
Code:
Content visible to registered users only.
Thats all. Run into any problems let me know.
Attached Files
File Type: zip recaptcha.zip (5.7 KB, 157 views)
__________________
Regards,
Raymond Benc (phpFoX Developer)
/**
*
@ Blog | Twitter | My Mods
*/

Last edited by Raymond Benc : 06-12-2008 at 08:16 AM.
The Following 17 Users Say Thank You to Raymond Benc For This Useful Post:
Ankor (12-26-2008), Blankfeeler (05-17-2009), d3m0n1x (04-07-2009), dvelle (06-29-2009), goblues4 (03-18-2009), hameedou (08-30-2009), hippychick (04-18-2009), kraze2007 (10-05-2008), MikeMike (11-15-2009), mrfgrant (04-02-2009), mwep (07-24-2008), Pdog89gt (01-06-2009), robertfrayer (06-12-2008), Tinman (03-24-2009), vprollc (08-06-2008), vujo91 (10-14-2008), WebDude (01-15-2009)
  #2  
Old 06-12-2008, 07:36 AM
ClubUgly's Avatar
ClubUgly ClubUgly is offline
3rd Party Developer
 
Join Date: Mar 2008
Location: Rochester MI
Posts: 2,831
Thanks: 41
Thanked 937 Times in 485 Posts
Feedback Score: (4)
ClubUgly is on a distinguished road
Default

I'm going to try it but there is 2 instances of:

On your server open the file: /design/templates/default/_modules/Account/Signup.html
Code:
Content visible to registered users only.
***You only need to do the first instance. Do not do the second or you will have two captcha's on the sign up page

Other than that, works perfect and no need to worry about small or large caps. This is what facebook and others use which is very nice. The edits above Natio provided even include the "contact us" page. Very Nice Job Natio!

Last edited by ClubUgly : 06-12-2008 at 08:03 AM.
  #3  
Old 06-12-2008, 08:16 AM
Raymond Benc's Avatar
Raymond Benc Raymond Benc is offline
phpFoX Developer
 
Join Date: Aug 2005
Posts: 3,860
Thanks: 77
Thanked 1,160 Times in 309 Posts
Feedback Score: (3)
Raymond Benc has disabled reputation
Default

Code:
Content visible to registered users only.
Thanks for the heads up. I edited the install guide now so others can find the correct part to edit.
__________________
Regards,
Raymond Benc (phpFoX Developer)
/**
*
@ Blog | Twitter | My Mods
*/
The Following User Says Thank You to Raymond Benc For This Useful Post:
kraze2007 (06-12-2008)
  #4  
Old 06-12-2008, 06:57 PM
DatDude DatDude is offline
phpFox Fanatic
 
Join Date: Aug 2006
Posts: 978
Thanks: 48
Thanked 20 Times in 17 Posts
Feedback Score: (0)
DatDude is on a distinguished road
Default

Which is more stable, the Verification Code system by Phpfox or Captcha?
I'm just wondering what if Recaptcha site goes down or something.. is better to use the default by phpfox?
  #5  
Old 06-12-2008, 07:18 PM
Raymond Benc's Avatar
Raymond Benc Raymond Benc is offline
phpFoX Developer
 
Join Date: Aug 2005
Posts: 3,860
Thanks: 77
Thanked 1,160 Times in 309 Posts
Feedback Score: (3)
Raymond Benc has disabled reputation
Default

Code:
Content visible to registered users only.
I personally prefer to host things myself as relying on other servers is adding to the list of things you need to think about when running a website, however reCAPTCHA is widely used and popular and I don't see their api servers going offline as I am sure their servers scale. Another bonus is reCAPTCHA has audio support which we don't, however we will with v2. reCAPTCHA will also be a choice of captchas that can be used with v2.
__________________
Regards,
Raymond Benc (phpFoX Developer)
/**
*
@ Blog | Twitter | My Mods
*/

Last edited by Raymond Benc : 06-12-2008 at 10:33 PM.
  #6  
Old 06-12-2008, 09:51 PM
robertfrayer robertfrayer is offline
phpFox Junior Guru
 
Join Date: Feb 2007
Location: Ruttledge Tn (USA)
Posts: 143
Thanks: 11
Thanked 14 Times in 5 Posts
Feedback Score: (0)
robertfrayer is on a distinguished road
Send a message via MSN to robertfrayer Send a message via Yahoo to robertfrayer
Default great job

good addon man. I use reCaptcha not only on my phpfox site but i use it on a few other sites phpbb3 ipb etc allthough yeah it is awsome to host your own randomimage reCaptcha is widely used and isnt a pain by being case sensitive (Lower Case and capitals)
  #7  
Old 06-13-2008, 01:33 PM
MJ23AI3RB24 MJ23AI3RB24 is offline
phpFoX NewBie
 
Join Date: Apr 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Feedback Score: (0)
MJ23AI3RB24 is on a distinguished road
Default

if purchased, would you be able to install for installation fee.?
  #8  
Old 06-16-2008, 02:56 AM
ClubUgly's Avatar
ClubUgly ClubUgly is offline
3rd Party Developer
 
Join Date: Mar 2008
Location: Rochester MI
Posts: 2,831
Thanks: 41
Thanked 937 Times in 485 Posts
Feedback Score: (4)
ClubUgly is on a distinguished road
Default

Code:
Content visible to registered users only.
This is a free mod, but if you need help installing it, I could do for you at a small fee. Just pm me your offer and I will reply back to you.
  #9  
Old 06-19-2008, 01:48 PM
kraze2007 kraze2007 is offline
phpFox Fanatic
 
Join Date: Oct 2007
Location: PSL, FL
Posts: 2,927
Thanks: 1,814
Thanked 287 Times in 225 Posts
Feedback Score: (1)
kraze2007 is on a distinguished road
Default

Thanks for this one Natio, I have a question is it possible to enable capcha for mail or comments after a certain number are sent. Example a new guys signs up on my site sends 30 messages to members there 95% chance he is a spammer it would be great if admins can turn on and define how many messages/comments were sent before the capcha code appeared with an ajax effect? This would be totally awesome lets test it for V2 :D
__________________
V2.0.5
  #10  
Old 06-19-2008, 10:34 PM
Craigster's Avatar
Craigster Craigster is offline
phpFox Fanatic
 
Join Date: May 2006
Location: California
Posts: 1,326
Thanks: 201
Thanked 143 Times in 110 Posts
Feedback Score: (0)
Craigster is on a distinguished road
Default

Code:
Content visible to registered users only.
Add this to the Feature Requests if you want it to see the light of day in V2. http://forums.phpfox.com/project.php...typeid=feature
__________________
1.6 Build 20, upgraded from 1.1.
The Following User Says Thank You to Craigster For This Useful Post:
kraze2007 (06-19-2008)
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:02 PM.