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

Support Thread for Google reCAPTCHA plugin

Views: 177,471

Results 41 to 60 of 696
2 Nov 2012, 1:26 PM
#41
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Support Thread for Google reCAPTCHA plugin

hi, i have the latest version of this mod installed on 1.5, works well, thanks.

However, first of all i didn't upload tpl_modules_create_account.php because i thought that this might mean then that there would not be a captcha on the account create page, i dont want a captcha there. However, when i tried to create an account, even though there was no captcha there, when i submitted it said incorrect captcha and couldn't create an account, and thus couldn't checkout. So, i just uploaded the file and it worked fine, but there is a captcha there. My first question is how can i sort so dont have a captcha on the account create page, if possible?

When an incorrect captcha is entered how do i change the alert message text? It is currently something like 'incorrect captcha sol' or such like.

Module and help appreciated, thanks.

Matt

2 Nov 2012, 2:35 PM
#42
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

mattys:

hi, i have the latest version of this mod installed on 1.5, works well, thanks.
However, first of all i didn't upload tpl_modules_create_account.php because i thought that this might mean then that there would not be a captcha on the account create page, i dont want a captcha there. However, when i tried to create an account, even though there was no captcha there, when i submitted it said incorrect captcha and couldn't create an account, and thus couldn't checkout. So, i just uploaded the file and it worked fine, but there is a captcha there. My first question is how can i sort so dont have a captcha on the account create page, if possible?
In the file /includes/classes/observers/class.google_recaptcha.php on line 14
change this:

$this->attach($this, array('NOTIFY_CONTACT_US_CAPTCHA_CHECK', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK'));

to

$this->attach($this, array('NOTIFY_CONTACT_US_CAPTCHA_CHECK','NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK'));

ie delete the 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK', bit. This stops it 'listening' for the create account hook.

mattys:

When an incorrect captcha is entered how do i change the alert message text? It is currently something like 'incorrect captcha sol' or such like.
That text is supplied by google - if you wanted to replace it with your own then on line 28 of that same file there is:

$messageStack->add($event_array[$eventID], $resp->error);

replace $resp_error with your own error message. If you want it multi-language you would have to add an entry like

define('ENTRY_CAPTCHA_CHECK_ERROR','Incorrect Captcha entered - please try again.');
``` to includes/languages/english/Your_Template/contact_us.php and then instead of line 28 in the class file use 

$messageStack->add($event_array[$eventID], ENTRY_CAPTCHA_CHECK_ERROR);

> **mattys:**
>
> Module and help appreciated, thanks.
> 
> Matt
Glad you are finding it useful.
Regards
David
5 Nov 2012, 10:09 AM
#43
macnick avatar

macnick

New Zenner

Join Date:
Jan 2010
Posts:
6
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Thank you for your contribution. I have zc 1.3.9h and installed this mod according to instructions. Everything works fine. My only trouble is I can not find where to put the customization code for google recaptcha.
The instructions in the read me file are
" these can be specified by including the following code in the html before the code added in steps 5 and 6 (anywhere will do, at the begining on line 15 works for both files)" but there step 5 is about uploading files and step 6 does not exist.

Thanks

Nick

5 Nov 2012, 10:49 AM
#44
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

Hi Nick
The custom code should go in the includes/templates/Your_Template/templates/tpl_contact_us_default.php (and the create account, write review templates). The instruction should refer to step 3 (that bit of the readme was written for the previous version and I forgot to update it - sorry).
I'll update the instructions.
Regards
David

5 Nov 2012, 5:15 PM
#45
macnick avatar

macnick

New Zenner

Join Date:
Jan 2010
Posts:
6
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

That was super fast answer! thank you.

Nick

19 Nov 2012, 4:53 AM
#46
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hi, thank you for the contrib.

I managed to get the contact us to work; but not the create account, even when the entry is wrong, the registration still goes through.

I have checked the tpl_modules_create_account.php file, the only thing is different from the reCaptcha copy is the referral mod.

Here: http://www.simpleartsplanet.com/create-account

19 Nov 2012, 5:24 AM
#47
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

saplanet:

Hi, thank you for the contrib.

I managed to get the contact us to work; but not the create account, even when the entry is wrong, the registration still goes through.

I have checked the tpl_modules_create_account.php file, the only thing is different from the reCaptcha copy is the referral mod.

Here: http://www.simpleartsplanet.com/create-account

I managed to get it to work. It's this instruction:
4c: In /includes/modules/YOUR_TEMPLATE/create_account.php, at around line 248 you should see the line:
if ($error == true) {
immediately before that add in the following code:
$zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');

Although running on zc1.5.1 engine, my cart was upgraded from 1.39h. Added that code, and everything is working! :laugh:

19 Nov 2012, 9:07 AM
#48
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

saplanet:

I managed to get it to work. It's this instruction:
4c: In /includes/modules/YOUR_TEMPLATE/create_account.php, at around line 248 you should see the line:
if ($error == true) {
immediately before that add in the following code:
$zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');

Although running on zc1.5.1 engine, my cart was upgraded from 1.39h. Added that code, and everything is working! :laugh:

Sounds like your /includes/modules/YOUR_TEMPLATE/create_account.php was based on the old 1.39h version, so needed the 1.3x instructions.
Glad it's working now.
Regards
David

19 Dec 2012, 4:16 PM
#49
nightfly66 avatar

nightfly66

New Zenner

Join Date:
Oct 2008
Posts:
44
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I use Zen Cart 1.3.8.
I installed Google reCaptcha and I followed the instructions.
I used your form ```
create_account.php


I read:

$ zco_notifier-> notify ('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');

and after

if ($ error == true) {


This also happens through Contact Us form

What's wrong?
Regards

Mister D
19 Dec 2012, 5:50 PM
#50
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

Nightfly66:

I use Zen Cart 1.3.8.
I installed Google reCaptcha and I followed the instructions.
I used your form ```
create_account.php

> 
> I read:
> ```
$ zco_notifier-> notify ('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');

and after

if ($ error == true) {

> 
> This also happens through Contact Us form
> 
> What's wrong?
> Regards
> 
> Mister D

Hi Mister
Not quite sure what error you are getting

But if you used the pre-1.5 create_account.php included in the zip there should be no edits to the file needed.

Regards
David
20 Dec 2012, 3:17 PM
#51
nightfly66 avatar

nightfly66

New Zenner

Join Date:
Oct 2008
Posts:
44
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

David Allen:

Hi Mister
Not quite sure what error you are getting

But if you used the pre-1.5 create_account.php included in the zip there should be no edits to the file needed.

Regards
David

I used pre-1.5 create_account.php included, but the forms do not require you to enter the code ...

20 Dec 2012, 4:34 PM
#52
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

Do you have a link to the site? It might help diagnose the problem.

21 Dec 2012, 5:20 PM
#53
nightfly66 avatar

nightfly66

New Zenner

Join Date:
Oct 2008
Posts:
44
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

David Allen:

Do you have a link to the site? It might help diagnose the problem.

http://farmaciaflorio.com/store/?language=en

21 Dec 2012, 8:01 PM
#54
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

I'm not sure but I think it may have something to do with the mega menu. Looking at the source of the contact us page I see the mega menu creates a form name="contact_us" which is the same name as the real (visible) contact us form on the page. I suspect it is somehow interfering in things.
Is it possible to turn that off briefly and then test to see if the problem persists?
Regards
David

22 Dec 2012, 9:57 AM
#55
nightfly66 avatar

nightfly66

New Zenner

Join Date:
Oct 2008
Posts:
44
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

David Allen:

I'm not sure but I think it may have something to do with the mega menu. Looking at the source of the contact us page I see the mega menu creates a form name="contact_us" which is the same name as the real (visible) contact us form on the page. I suspect it is somehow interfering in things.
Is it possible to turn that off briefly and then test to see if the problem persists?
Regards
David

I will try but I saw that with Zen Cart 1.5.1 this does not happen.
I think it's a problem of version 1.3.8.
I have to decide to perform the migration ...

Regards

22 Dec 2012, 11:08 AM
#56
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

Nightfly66:

I will try but I saw that with Zen Cart 1.5.1 this does not happen.
I think it's a problem of version 1.3.8.
I have to decide to perform the migration ...

Regards
Ah..I missed the 1.38 bit. I have to confess that I only tested the latest version with 1.39 and above. The original version worked with 1.38 (I think I remember testing it), if you wanted to give that a go. However upgrading to the latest version of Zen would be better, not least because of the security improvements since 1.38 was released.

1 Jan 2013, 5:58 AM
#57
theblake avatar

theblake

New Zenner

Join Date:
Dec 2012
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I must be missing something, because for the life of me I dont see "Install Now" anywhere in the Admin pages at this step in the installation instructions?

  1. Click link in at top of page labeled [Install Now]. recaptcha configuration will itself & sql statemtents.

Where do I find this link? I am quite new to ZenCart, but have spent the last two days working on it full time, and I havent seen any other plugin have this step.
http://shop.theblake.net ver 1.5.1

1 Jan 2013, 12:12 PM
#58
david_allen avatar

david_allen

Zen Follower

Join Date:
Feb 2008
Location:
Amersham, Buckinghamshire, United Kingdom
Posts:
141
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

@theblake - I think you are trying to install the contact reCAPTCHA by pickupman - which doesn't appear to have it's own support thread. This thread is the support for my Google reCAPATCHA give it a go if you can't get anywhere with the other one.
I do notice that you are using 1.5.1 and the cantact reCAPTCHA was updated for 1.5.0 - maybe that might explain why you are having problems? Although I don't think too much changed between the two versions.
Sorry I can't be more help.
Regards

2 Jan 2013, 11:46 AM
#59
theblake avatar

theblake

New Zenner

Join Date:
Dec 2012
Location:
Australia
Posts:
5
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Thats Dave, thats right! I blame google, I searched and found this thread :-)

will give this one a go then.

24 Jan 2013, 9:42 PM
#60
racinjason avatar

racinjason

New Zenner

Join Date:
Jan 2012
Posts:
30
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Having trouble with the captcha add-on website: https://www.torontoturbo.com

I tried adding this to the "contact us" header drop down as we started getting heaving spamming last night. I added the code near line #19 as instructed but not working. I also noticed in the sidebox that the "contact us" link does not have a submit button now.....I cannot confirm if it was there before I tried to add the captcha or not.

Can anyome point me in the right direction?....amaybe with some step by step guidance.

Thank
Toronto Turbo