Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   reCAPTCHA for tsue 2.2 (http://www.bvlist.com/showthread.php?t=11654)

joeroberts 21st June 2018 11:40

dudes this is the confermation code it works with the first half that Botanicar posted http://www.bvlist.com/showpost.php?p=51659&postcount=63 he posted the theme part that you half to edit the templates the part I posted works after you hit login

Napon 21st June 2018 19:21

Ill do more test as im doing the repo very too for all to download for free mate
I hope everyone can wait for my new repo

Bump: http://fmdition.net/?p=home&pid=1

The above link is to show you all the new repack only up for a day or so then on i go to do a code for a mate

Botanicar 21st June 2018 23:02

Code:

You did not complete the CAPTCHA verification properly. Please try again.

thartley55 21st June 2018 23:57

Get the following message...EVERY time.

attention

Attention

You did not complete the CAPTCHA verification properly. Please try again.




joeroberts 22nd June 2018 02:50

ok lets start all this from the begining
#1 you must have a V2 puplic and private key!!!!!!!!
#2 the site you are testing this on MUST be setup in
Your reCAPTCHA sites

open
ajax/forgot_password.php and find
Code:

if( !$verifyCaptcha->verifyCaptcha($recaptcha_challenge_field, $recaptcha_response_field) )
and make it
Code:

        if( !$verifyCaptcha->verifyCaptcha($recaptcha_challenge_field, $_POST["g-recaptcha-response"]) )
now open ajax/signup.php and do the same find
Code:

if( !$verifyCaptcha->verifyCaptcha($recaptcha_challenge_field, $recaptcha_response_field) )
and make it
Code:

        if( !$verifyCaptcha->verifyCaptcha($recaptcha_challenge_field, $_POST["g-recaptcha-response"]) )
open library/classes/class_captcha.php
and replace the content with
Code:


class TSUE_captcha
{
    private $apiURL = "https://www.google.com/recaptcha/api/siteverify?secret=";
    private $privatekey = "";//PUT YOUR PRIVATE KEY HERE
    public $status = false;
    public $error = "";

    public function verifyCaptcha($recaptcha_challenge_field = "", $recaptcha_response_field = "")
    {
        global $_POST;
                $ip = $_SERVER['REMOTE_ADDR'];
                $response=file_get_contents($this->apiURL.$this->privatekey."&response=".$recaptcha_response_field."&remoteip=".$ip);
                $responseKeys = json_decode($response,true);       
                $this->status = intval($responseKeys["success"]) !== 1 ? false : true;
                if(!$this->status)
                {
                    $this->error = $responseKeys['error-codes'][0];
                }

        return $this->status;
    }

}
?>


Botanicar 22nd June 2018 10:10

something missing in the code


https://s8.postimg.cc/6xq3fvfp1/Screenshot_1.jpg

joeroberts 22nd June 2018 12:02

You have made the edit in the templates?
Paste this snippet before the closing
Code:


tag on your HTML template:
Code:


Paste this snippet at the end of the
Code:


where you want the reCAPTCHA widget to appear:
Code:



Napon 22nd June 2018 15:25

http://fmdition.net/index.php?p=home&pid=1

Ok testing signups on demo site

hart 22nd June 2018 16:30

Quote:

Originally Posted by Napon (Post 52089)
http://fmdition.net/index.php?p=home&pid=1

Ok testing signups on demo site

Napon your site not working :wallbash:

maybe you could run your own website like that:lol:

Napon 22nd June 2018 17:03

It was not lol as i was editing files on signup ok try now to signup all good to go


All times are GMT +2. The time now is 04:17.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.