Jump to content

Recommended Posts

  • Moderators
Posted

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?

  • Moderators
Posted

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.

  • Administrators
Posted
  On 3/9/2018 at 7:18 PM, 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.

Expand  

Probably be good to post it, or write something in the documentation area?

  • Moderators
Posted

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!

Posted
  On 3/15/2018 at 6:03 PM, 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!

Expand  

Thanks very kind. Best regard

Posted

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?

  • 1 month later...
Posted
  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?

Expand  

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
  • Moderators
Posted
  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?

Expand  

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...