|
#11
|
||||
|
||||
Yes I know that but what about the part that takes place after you hit submit?
You know that part of the code that checks to make sure that you used the recaptcha check box and are confirmed? the part your showing is only the part that displays the check box.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ |
#12
|
||||
|
||||
Unfortunately, I do not know, because I completely disconnected this TSUE class_captcha from registration and use my own way of solving, because this key was linked to you know who ....
|
#13
|
||||
|
||||
try this
make sure you edit the Privatekey and it needs to be for v-2 Code:
<?php class TSUE_captcha { private $apiURL = "https://www.google.com/recaptcha/api/siteverify?secret="; private $privatekey = "6LfHFTQUAAAARFGHTDGGOyBEj7S"; public $status = false; public $error = ""; public function verifyCaptcha($recaptcha_challenge_field = "", $recaptcha_response_field = "") { $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; } }
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ |
#14
|
||||
|
||||
Quote:
Not work, I don't use TSUE enymore I just try to help another people to make it to works |
#15
|
|||
|
|||
reCAPTCHA for tsue 2.2
Last edited by DjBlack; 20th June 2018 at 01:43. |
#16
|
||||
|
||||
all of us who use TSUE 2.2 know where to turn off or turn on reCaptcha, the masterpiece is how to fix reCaptcha from V1 to V2 |
#17
|
|||
|
|||
Thax for info mate looking into it now as we speak
|
#18
|
||||
|
||||
so Has it been confirmed what I posted did not work? I know Botanicar said that he was not able to test it.
here this one is updated and should work Code:
<?php class TSUE_captcha { private $apiURL = "https://www.google.com/recaptcha/api/siteverify?secret="; private $privatekey = "6LfHFTQUAAAARFGHTDGGOyBEj7S"; public $status = false; public $error = ""; public function verifyCaptcha($recaptcha_challenge_field = "", $recaptcha_response_field = "") { global $_SERVER, $_POST; $ip = $_SERVER['REMOTE_ADDR']; $response=file_get_contents($this->apiURL.$this->privatekey."&response=".$_POST["g-recaptcha-response"]."&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; } } ?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ Last edited by joeroberts; 21st June 2018 at 00:56. |
#19
|
|||
|
|||
Quote:
|
#20
|
||||
|
||||
TSUE reCaptcha
I do not know why you ignore this solution, if it works for guys I help too then it should work for everyone:
http://www.bvlist.com/showpost.php?p=51659&postcount=63 and damn the shit is ready, move on to the next problem |
Tags |
22 , recaptcha , tsue |
|
|