Haneef Puttur

Integrating Google Recaptcha to Webid – Auction Script

Webid do not have built in support for new google Recaptcha . If use enable Recaptcha of webid your registration form may not work. To resolve this follow below steps.

 

Step 1 : Register for google Recaptcha

https://www.google.com/recaptcha/admin

Enter google username and Password

 

Once you register google will provide a site key , please make a note of it.

Step 2 : Open the file themes/modern/global_header.tpl     .. If you are using different theme use concerned folder.

Add This line exactly before the >/head> tag

<script src=’https://www.google.com/recaptcha/api.js’></script>

Step 3 :

Open themes/modern/register.tpl   and replace below code

 

Replace below code block after replacing the site key

 <div class="form-group col-lg-12">
 <div class="capchabox">{CAPCHA}</div>
 </div>
 <!-- CAPCHA CODE -->
 <div class="form-group col-lg-12">
 <div class="g-recaptcha" data-sitekey="SITE KEY HERE"></div>
 </div>

 

 

Now login to webid panel and disable captcha setting to now as below.

 

Now you open the home page in webid admin panel and click on clear cache as below

Now open the registration page you will see the new Google recapcha version 2 as follows

 

 

Exit mobile version