Navigation
Last Seen Users
Anqueetus00:24:13
Zzyzix00:41:44
VuuK00:55:35
KFJ01:00:39
fusmen01:15:08
LuMaXx01:15:46
douwe_yntema01:28:19
Rolly8-HL01:33:23
RickP01:33:43
Bigfoot01:48:56

Members: 27,577
Newest: Zzyzix
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [19 Votes]

7.00.xx
7.00.xx
8% [38 Votes]

7.01.xx
7.01.xx
8% [40 Votes]

7.02.xx
7.02.xx
80% [400 Votes]

Votes: 497
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

20-05-2013 00:58

20-05-2013 00:09

19-05-2013 23:49

19-05-2013 23:48

19-05-2013 23:46

19-05-2013 20:51

19-05-2013 20:50

18-05-2013 10:01
Can I link a panel to another subdomain? If so how? openside() echo ??? "http://xxxxx/infus
ions/panel/panel.p
hp" closeside()

18-05-2013 01:20

18-05-2013 01:19

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
Articles Hierarchy
Patch Re-captcha PHP-Fusion 7 For Defending Spambot Attack
This is Step By Step to Patch Recaptcha into your PHP-Fusion 7 Comment Form.


1. Get Public & Private Key from http://www.google.com/recaptcha


2. Download the Recaptcha library from here extract recaptchalib.php & upload to directory www[dot]yoursite[dot]com/includes/


3. edit file "comments_include.php" from www[dot]yoursite[dot]com/includes/ directory


4. Find this line (line 39)


if (iMEMBER) {
$comment_name = $userdata['user_id'];

Add this code after it

//Update By EVA-00 For patch Recaptcha
//Start Here
require_once BASEDIR."includes/recaptchalib.php";
$privatekey = "inpur-your-private-key"; //you got this key from the signup page
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
{redirect($link);}
}
//End Here


5. the last one, find this line ( line 165)


echo display_bbcodes("360px", "comment_message");


Add this code after it


//Update By EVA-00 For patch Recaptcha
//Start Here
echo "
".$locale['global_158']."

";
require_once BASEDIR."includes/recaptchalib.php";
$publickey = "Input-Your-Public-key"; // you got this key from the signup page
echo recaptcha_get_html($publickey);
//End Here


Done, you can download full script here and modify it as you want.
4838
EVA-00 on May 23 2011 22:37:26

Edit :

"2. Download the Recaptcha library from here extract recaptchalib.php [and] upload to directory www[dot]yoursite[dot]com/includes/"

here =

Code
http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest


Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.