Moderators mark1million Posted March 9, 2018 Moderators Report Posted March 9, 2018 Google are removing the V1 recaptcha from use on the 31st of this month. Two questions, how do i recode for V2 or disable in the registrations. Has this been answered before? Quote
Moderators mark1million Posted March 9, 2018 Author Moderators Report Posted March 9, 2018 Quick update, I have the entrance exam by David, I have managed to fully remove ReCaptcha from the normal registration process and the entrance exam process. If your stuck and want to know how just post here, its easy enough with only a few edits. Quote
Administrators Nabeel Posted March 9, 2018 Administrators Report Posted March 9, 2018 2 minutes ago, mark1million said: Quick update, I have the entrance exam by David, I have managed to fully remove ReCaptcha from the normal registration process and the entrance exam process. If your stuck and want to know how just post here, its easy enough with only a few edits. Probably be good to post it, or write something in the documentation area? Quote
gio1961 Posted March 15, 2018 Report Posted March 15, 2018 On 9/3/2018 at 8:21 PM, Nabeel said: Probably be good to post it, or write something in the documentation area? Also I'm using David's form, I'm having problems. Can you share here in code or privately? thank you Quote
Moderators mark1million Posted March 15, 2018 Author Moderators Report Posted March 15, 2018 Sorry chaps been crazy busy here. To remove Captcha from the native registration do the following, registrationmaindform.tpl or php Back up your files before editing i take no responsibility if your site breaks! Find the following and delete it or just comment it out. <dt>ReCaptcha</dt> <dd> <script type="text/javascript"> var RecaptchaOptions = { theme : 'white' }; </script> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> </dd> <dt></dt> Go to the Core>Modules>Registration>registration.php and remove of comment out this as i have, /* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */ If you have Davids Entrance Exam you need to edit some more files but because it used the native phpVms registration process then you will need to edit that also in the core modules registration registration.php as well. To remove from the entrance exam you need to edit the following in the entrance folder of your skin or template where ever you installed it. registration_form.php and entrance_form.php, remove this from both. <dt>reCaptcha</dt> <dd> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> <p class="error">* Please note these are required fields and must be completed to register.</p> </dd> <dt></dt> remove this same thing from both those files Finally in teh Core>modules>Entrance> Entrance.php remove the following or comment it out as i have. /* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */ This will remove Captcha from your registration process. Back up your files before editing i take no responsibility if your site breaks! Quote
gio1961 Posted March 15, 2018 Report Posted March 15, 2018 1 hour ago, mark1million said: Sorry chaps been crazy busy here. To remove Captcha from the native registration do the following, registrationmaindform.tpl or php Back up your files before editing i take no responsibility if your site breaks! Find the following and delete it or just comment it out. <dt>ReCaptcha</dt> <dd> <script type="text/javascript"> var RecaptchaOptions = { theme : 'white' }; </script> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> </dd> <dt></dt> Go to the Core>Modules>Registration>registration.php and remove of comment out this as i have, /* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */ If you have Davids Entrance Exam you need to edit some more files but because it used the native phpVms registration process then you will need to edit that also in the core modules registration registration.php as well. To remove from the entrance exam you need to edit the following in the entrance folder of your skin or template where ever you installed it. registration_form.php and entrance_form.php, remove this from both. <dt>reCaptcha</dt> <dd> <?php echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error); ?> <p class="error">* Please note these are required fields and must be completed to register.</p> </dd> <dt></dt> remove this same thing from both those files Finally in teh Core>modules>Entrance> Entrance.php remove the following or comment it out as i have. /* $error = false; $resp = recaptcha_check_answer (Config::Get('RECAPTCHA_PRIVATE_KEY'), $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if(!$resp->is_valid) { $error = true; $this->set('captcha_error', $resp->error); } else { $this->set('captcha_error', ''); } */ This will remove Captcha from your registration process. Back up your files before editing i take no responsibility if your site breaks! Thanks very kind. Best regard Quote
in2tech Posted March 15, 2018 Report Posted March 15, 2018 So how do we had this new V2 code to our local.config.php? Do we just grab the code from the API? Quote
TAV1702 Posted March 19, 2018 Report Posted March 19, 2018 TO bad API2 was not in place first. You all are going to have 500 new Russian hot chicks registering overnight and informing you that if you send them $9875 they will send you your UK lottery winnings and by clicking this lucky link you can view all their nasty pics that you want. VIRUS FREE! Please tell me you all have a captcha of some type installed now and not just a help yourself registration? Quote
topher2880 Posted May 9, 2018 Report Posted May 9, 2018 On 3/20/2018 at 8:22 AM, TAV1702 said: TO bad API2 was not in place first. You all are going to have 500 new Russian hot chicks registering overnight and informing you that if you send them $9875 they will send you your UK lottery winnings and by clicking this lucky link you can view all their nasty pics that you want. VIRUS FREE! Please tell me you all have a captcha of some type installed now and not just a help yourself registration? Im looking for a Nairobi prince if anyone has any lying around :D on a serious note, looking for the fix to still require the recatcha 1 Quote
Administrators Nabeel Posted May 9, 2018 Administrators Report Posted May 9, 2018 There's a pinned topic Quote
Moderators mark1million Posted May 9, 2018 Author Moderators Report Posted May 9, 2018 On 3/19/2018 at 9:52 PM, TAV1702 said: TO bad API2 was not in place first. You all are going to have 500 new Russian hot chicks registering overnight and informing you that if you send them $9875 they will send you your UK lottery winnings and by clicking this lucky link you can view all their nasty pics that you want. VIRUS FREE! Please tell me you all have a captcha of some type installed now and not just a help yourself registration? Ha ha :) If you have the entrance exam you generally find that's all the spam protection you will ever need. I have never had any spam registrations. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.