Jump to content
mark1million

ReCaptcha Termination 31 March 2018

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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  

  • Like 1

Share this post


Link to post
Share on other sites
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.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×