Zen Cart Logo
Forums / All Other Contributions/Addons / Support Thread for Google reCAPTCHA plugin

Support Thread for Google reCAPTCHA plugin

Views: 176,348

Results 261 to 280 of 694
24 Jan 2017, 6:58 PM
#261
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Support Thread for Google reCAPTCHA plugin

**Inside includes/languages/extra_definitions/recaptcha.php the line $secret = "; does not exist.

**
--- Inside file ---

includes/languages/english/extra_definitions/recaptcha.php

-- Change this line ---

$secret = '';

-- To this line --
$secret = 'Your SECRET token';

--- Inside file ---

includes/languages/english/extra_definitions/recaptcha.php

-- Change this line ---

define('RECAPTCHA_SITE_KEY',<div class="g-recaptcha" data-sitekey=""></div>' . "\n");

-- To this line --

define('RECAPTCHA_SITE_KEY',<div class="g-recaptcha" data-sitekey="Your SITE-KEY"></div>' . "\n");

--- To integrate reCaptcha into customer create account page.

--- Inside file ---

includes/templates/template_default/templates/tpl_modules_create_account.php

--- Insert these lines ---

<fieldset> <?php echo RECAPTCHA_SITE_KEY;?> <?php echo RECAPTCHA_SCRIPT;?> </fieldset>

Inside includes/templates/template_default/templates/tpl_modules_create_account.php the line <?php if (CUSTOMERS_REFERRAL_STATUS == 2) { ?> does not exist

--- Above these lines ---

<?php if (CUSTOMERS_REFERRAL_STATUS == 2) { ?>

Inside file includes/create_account.php
--- Inside file ---

includes/modules/create_account.php

**Inside includes/modules/create_account.php the line if (isset($_POST['action']) && ($_POST['action'] == 'process')) { does not exist.

**
--- Change this line ---

if (isset($_POST['action']) && ($_POST['action'] == 'process')) {

--- To this line ---

if (zen_validate_recaptcha() == 'true' && isset($_POST['action']) && ($_POST['action'] == 'process')) {

3 Feb 2017, 9:48 AM
#262
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I'm running Zencart v1.5.5d with a Sheffield Blue template on PHP v5.4.45.
Although it seems to be displaying properly, when I complete the form and click the box, it loads for a while, then returns the same page, with no error or success message. No message is received either.
Any idea where to start looking?

6 Feb 2017, 2:12 PM
#263
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Does anyone still use this addon?

8 Feb 2017, 1:07 AM
#264
ehswift avatar

ehswift

New Zenner

Join Date:
May 2008
Location:
Amarillo, TX
Posts:
39
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

David Allen:

I've started this thread to provide support for my Google reCAPTCHA plugin. http://www.zen-cart.com/downloads.php?do=file&id=1455
Any questions or problems let me know below
Regards
David

Any chance of getting an updated version for Zen Cart 1.5.5?

8 Feb 2017, 1:15 AM
#265
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Support Thread for Google reCAPTCHA plugin

ehswift:

Any chance of getting an updated version for Zen Cart 1.5.5?
The changes are VERY simple:

For each of the 3 template files, find the line that says:```

<?php echo recaptcha_get_html(true); ?>

That's the only change that exists in each of those 3 template files. You can find that line in each file, and put it in the similar spot in the newer version of that same file in your own template.
11 Feb 2017, 11:05 AM
#266
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

This is a great module, and works nice on 1.55d . Is there a way to make it work nice in responsive view at all? Apparently it seems to be an issue with others elsewhere, but not sure if it can be styled within this module?

13 Feb 2017, 1:15 AM
#267
ehswift avatar

ehswift

New Zenner

Join Date:
May 2008
Location:
Amarillo, TX
Posts:
39
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

DrByte:

The changes are VERY simple:

For each of the 3 template files, find the line that says:```

<?php echo recaptcha_get_html(true); ?>
> 
> That's the only change that exists in each of those 3 template files. You can find that line in each file, and put it in the similar spot in the newer version of that same file in your own template.

Thanks for your response, but I am not sure where to find the 3 files you are referring to as it seems they have been moved somewhere else in version 1.5.5d. Can you point me in the right direction please?
13 Feb 2017, 10:08 PM
#268
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Support Thread for Google reCAPTCHA plugin

ehswift:

DrByte:

ehswift:

Any chance of getting an updated version for Zen Cart 1.5.5?
The changes are VERY simple:

For each of the 3 template files, find the line that says:```

<?php echo recaptcha_get_html(true); ?>
> > 
> > That's the only change that exists in each of those 3 template files. You can find that line in each file, and put it in the similar spot in the newer version of that same file in your own template.
> Thanks for your response, but I am not sure where to find the 3 files you are referring to as it seems they have been moved somewhere else in version 1.5.5d. Can you point me in the right direction please?

Sigh. No, they didn't move. 

/includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_product_reviews_write_default.php
14 Feb 2017, 6:22 AM
#269
ehswift avatar

ehswift

New Zenner

Join Date:
May 2008
Location:
Amarillo, TX
Posts:
39
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I am using a **customized **version of the responsive_classic template included in Zen Cart 1.5.5d and those files are no longer in the includes\templates\MY-CUSTOM-RESPONSIVE\templates folder as you suggested, however they are still there in the includes\templates\responsive_classic\templates folder. When I created my own template I used the override system and just copied all of the files from the responsive_classic template to my custom responsive template folder before making any modifications. Did I miss a step here?

Also, help me understand something please. When I use the template override system for my own custom responsive template am I still supposed to use the same override system in the template_default folders as well? I think this is where the confusion is coming into play.

By the way, thank you for all of your help so far in this matter.

14 Feb 2017, 7:25 AM
#270
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Support Thread for Google reCAPTCHA plugin

ehswift:

I am using a **customized **version of the responsive_classic template included in Zen Cart 1.5.5d and those files are no longer in the includes\templates\MY-CUSTOM-RESPONSIVE\templates folder as you suggested, however they are still there in the includes\templates\responsive_classic\templates folder. When I created my own template I used the override system and just copied all of the files from the responsive_classic template to my custom responsive template folder before making any modifications. Did I miss a step here?

Also, help me understand something please. When I use the template override system for my own custom responsive template am I still supposed to use the same override system in the template_default folders as well? I think this is where the confusion is coming into play.

By the way, thank you for all of your help so far in this matter.
Not sure whether you missed a step or undid work that was done. If the file doesn't exist in your renamed custom folder (MY-CUSTOM-RESPONSIVE), then the template_default version of the file will be used. Generally speaking, the files in the template_default folder should remain unchanged. If you need to modify the file(override it) then the template_default version should be brought to your override folder. That is the way of the override system. If it exists in the override directory, then generally speaking ignore the default version. (language files have a little bit of a nuiance to them, but same principle).

Basically you should always be able to go back to the template_default files to see how the base template should look. Then the responsive_classic also should remain unchanged but could be copied to some additional folder and then modified.

14 Feb 2017, 3:03 PM
#271
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Every since I installed recaptcha I receive this error "zen_validate_recaptcha no input" in the error logs daily.

If the customer does not click on the recaptcha he does not get access. Thats good.

When a customer clicks on the recaptcha button the error is logged.

When the customer clicks on the sign in button after clicking on the recaptcha button the error is logged.

The customer does get access if he clicks on the recaptcha button first.

An error should not be logged every time you click on a button on the login page.

Is there any way to correct this problem.

17 Feb 2017, 4:18 PM
#272
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Has anyone tried using this plugin on Zen Cart 1.5.5d?

18 Feb 2017, 2:53 PM
#273
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Apologies, I meant to say it is the google Recaptcha button that seems to hinder responsiveness:-

HeathenMagic:

This is a great module, and works nice on 1.55d . Is there a way to make it work nice in responsive view at all? Apparently it seems to be an issue with others elsewhere, but not sure if it can be styled within this module?

18 Feb 2017, 2:58 PM
#274
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

jodean:

Has anyone tried using this plugin on Zen Cart 1.5.5d?

Yes it works fine. Unless you are using responsive, the recpatcha button needs to be styled somehow to make it responsive. But all good apart from that

23 Feb 2017, 7:45 PM
#275
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

It does not seem to be working very well using Responsive Classic template. Every time a customer clicks on the Sign In Button or the recaptcha button an error is created. Error "zen_validate_recaptcha no input". Some days I have to delete hundreds of errors. This has become a real nu-sense. Seriously thinking about uninstalling the Google recaptcha plugin if no-one has any definitive resolution to the problem.

24 Feb 2017, 10:20 AM
#276
imen avatar

imen

New Zenner

Join Date:
Aug 2011
Posts:
21
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

HI,

I am using v1.5.1, after installed the 3.1 version plugin, I receive a red error message "Please verify that you are not a robot" on both "contact me" page and "create new account" page. I tried uploading all the files in the plugin, also tried steps of pre-1.5.1 from scratch, lastly I deleted every file on the list, the same error still pops up! What could be the problem? How can I return to the stage before anything is being done? Thanks!

https://www.teahabitat.com

24 Feb 2017, 3:50 PM
#277
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Support Thread for Google reCAPTCHA plugin

jodean:

It does not seem to be working very well using Responsive Classic template. Every time a customer clicks on the Sign In Button or the recaptcha button an error is created. Error "zen_validate_recaptcha no input". Some days I have to delete hundreds of errors. This has become a real nu-sense. Seriously thinking about uninstalling the Google recaptcha plugin if no-one has any definitive resolution to the problem.
Very odd.
I just set up a fresh v1.5.5d site with demo products, copied in all the files from the plugin, except the template files. Then manually put the "<?php echo recaptcha_get_html(true); ?>" into each of the 3 templates (one in the responsive_classic folder, and the other 2 in template_default). Then put my recaptcha key+secret into the extra_functions file, as per the readme.

Then I went visiting the site from my desktop browser. The store works fine. The contact-us page requires captcha, and lets me make the necessary clicks to complete it. Created an account, which also required captcha without problems. Then wrote a review, which required captcha, without errors. No debug-log-files created. All functioning normally, using responsive_classic in v1.5.5d.

I don't think your problem is the plugin. Maybe you've missed some of its files?

28 Feb 2017, 2:46 AM
#278
imen avatar

imen

New Zenner

Join Date:
Aug 2011
Posts:
21
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

HI,

Not sure if I posted this issue at the right place or not three days ago. Help is needed urgently, so here it is again.

I am using v1.5.1, after installed the 3.1 version plugin, I receive a red error message "Please verify that you are not a robot" on both "contact me" page and "create new account" page. I tried uploading all the files in the plugin, also tried steps of pre-1.5.1 from scratch, lastly I deleted every file on the list, the same error still pops up! What could be the problem? How can I return to the stage before anything is being done? Thanks!

https://www.teahabitat.com

28 Feb 2017, 2:52 AM
#279
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Support Thread for Google reCAPTCHA plugin

ehswift:

I am using a **customized **version of the responsive_classic template included in Zen Cart 1.5.5d and those files are no longer in the includes\templates\MY-CUSTOM-RESPONSIVE\templates folder as you suggested, however they are still there in the includes\templates\responsive_classic\templates folder. When I created my own template I used the override system and just copied all of the files from the responsive_classic template to my custom responsive template folder before making any modifications. Did I miss a step here?

Also, help me understand something please. When I use the template override system for my own custom responsive template am I still supposed to use the same override system in the template_default folders as well? I think this is where the confusion is coming into play.
There are 3 template files affected, assuming you want the Recaptcha widget on all 3 of those pages:

/includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_product_reviews_write_default.php



To update these templates for v1.5.5, specifically for responsive_classic compatibility in your own custom modified responsive_classic:

  1. copy their equivalent from responsive_classic over to your modified template. In the case of contact_us this is easy because the file was included.
    For the other two, there were no changes from template_default, so the plugin author didn't provide them, since the template_default was already modified to include the widget.

OR, just follow the instructions in the readme to put the recaptcha widget where you wanted it, by adding this line:

<?php echo recaptcha_get_html(); ?>

For convenience I've updated the plugin zip with complete copies of the affected v155 templates, which you can merge with your modified-responsive_classic template. https://www.zen-cart.com/downloads.php?do=file&id=1455

28 Feb 2017, 3:05 PM
#280
magicman avatar

magicman

Zen Follower

Join Date:
Oct 2007
Location:
MA, USA
Posts:
385
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Is it possible to only use this plugin on the Contact Us page? Thank you.