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

Support Thread for Google reCAPTCHA plugin

Views: 176,326

Results 181 to 200 of 694
16 Dec 2014, 11:29 PM
#181
bobc avatar

bobc

New Zenner

Join Date:
Jun 2013
Location:
UK
Posts:
49
Plugin Contributions:
0

Support Thread for Google reCAPTCHA plugin

Problem with the display of the reCapture image.

I have installed this excellent addition to my site, but the image is not displaying correctly on any of three relevant pages.

Please can anybody tell me how I 'clean-up' this image?

I am using 1.5.3 with the Responsive Sterling Grand Template

Attachment 14798

16 Dec 2014, 11:34 PM
#182
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

Saw this before once - it's your css that is causing it. I'll see if I can find the previous post with the same problem. In the meantime a link to your site would be useful.
Regards
David

16 Dec 2014, 11:46 PM
#183
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

Found the previous post - looks like it wasn't css, but a problem with some image scripts
Regards
David

17 Dec 2014, 1:06 AM
#184
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

Ok Bob - I've had a look at the site and looks like I was right first time - it is a css problem
on line 22 of your stylesheet.css you have:```
input {border:1px solid #ccc;height:28px;margin-bottom:10px;}

if you remove the height:28px everything looks ok on the reCAPTCHA.
If that would mess up other forms on your site you could try ```
.recaptchatable input {height:auto;}

Regards
David

27 Apr 2015, 1:21 PM
#185
travbacon avatar

travbacon

Zen Follower

Join Date:
Mar 2015
Posts:
169
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Hi. Is there a way to remove the upper portion of the captcha, the "I'm not a robot" part. Seems like a little overkill. thank you.

27 Apr 2015, 1:39 PM
#186
travbacon avatar

travbacon

Zen Follower

Join Date:
Mar 2015
Posts:
169
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

I am sorry. I meant to remove the bottom part.

here is the article

http :// mycodde. blogspot. com/ 2014/ 12/ new-checkbox-recaptcha-tutorial-with. html

14 Jun 2015, 4:28 PM
#187
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

Re: Support Thread for Google reCAPTCHA plugin

Is there an updated version of this module that uses the new 2.0 Google reCAPTCHA?

7 Jul 2015, 8:52 PM
#188
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

New version is now available. This uses Google newest 'I am not a robot' reCaptcha, which is much more user friendly and bot unfriendly.
Any questions/problems - just post them here.
Regards

8 Jul 2015, 2:02 PM
#189
invizix avatar

invizix

New Zenner

Join Date:
Oct 2007
Posts:
27
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

Thanks David, for creating this great Zen Cart plugin. We have a question before implementation, does this plugin have the ability to be disabled for the account creation pages?

Thanks.

8 Jul 2015, 2:30 PM
#190
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 Invizix
Yes it does - in the file /includes/classes/observers/class.google_recaptcha.php you just need to comment out the line

$pages_to_check[] =  'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK';

Regards

8 Jul 2015, 3:10 PM
#191
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Support Thread for Google reCAPTCHA plugin

David Allen:

Hi Invizix
Yes it does - in the file /includes/classes/observers/class.google_recaptcha.php you just need to comment out the line

$pages_to_check[] = 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK';

> Regards

Just wanted to say thank you for your work on this great plugin ;)  What changes need to be made to make to the plugin to include this on the ask a question form?

Thanks,

Anne
8 Jul 2015, 4:12 PM
#192
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 Anne
I'm assuming you are using the 'Ask a Question' plugin - https://www.zen-cart.com/downloads.php?do=file&id=109
If so, it should be fairly easy to add it to that.
Essentially you need too look at the instruction for pre-1.5.1 installation

In /includes/modules/ask_a_question/header.php just after line 41 add:

$zco_notifier->notify('NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK');

and change the line below it from

if ($zc_validate_email and !empty($enquiry) and !empty($name)) {

to

if ($zc_validate_email and !empty($enquiry) and !empty($name) and $error == false) {

in /includes/classes/observers/class.google_recaptcha.php insert this just below line number 23

$pages_to_check[] =  'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK';

in your tpl_ask_a_question_default.php file (probably just under the textarea, so line 80) add

<?php echo recaptcha_get_html(); ?>

That should do it :)

8 Jul 2015, 4:22 PM
#193
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 Anne
Opps forgot - in /includes/classes/observers/class.google_recaptcha.php line 42 change

$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');

to

$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text','NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK' => 'ask_a_question');
8 Jul 2015, 4:42 PM
#194
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Support Thread for Google reCAPTCHA plugin

David Allen:

Hi Anne
Opps forgot - in /includes/classes/observers/class.google_recaptcha.php line 42 change

$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');

> to
> ```
$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text','NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK' => 'ask_a_question');

Thank you so much for taking the time to provide such a detailed answer. I really appreciate it :hug:

Thanks,

Anne

31 Jul 2015, 5:49 PM
#195
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

Got a question via private message - so I thought I'd post it here so that everyone can see the answer:

Hi David,

I have added the files to my cart, v1.5.4, english and dutch version.
I have a graphic on the contact us page and create account page, on both languages it says "Ik ben geen robot" (I am not a robot)

How can I get the text in engllish om my english pages?

Answer:

When the request is sent to Google to display the reCaptcha they detect what your language setting is in your browser and automatically display the reCaptcha challenge in that language. So generally for multi-language sites you don't need to do anything, the customers preferred language will be used.
The only time it might be a problem is if the customer is using a computer that isn't their own and the browser language is set to some other language.
It is possible to force the reCaptcha to display in a specific language by adding a language code to the javascript call
eg - to force the display in spanish you would have

script src="https://www.google.com/recaptcha/api.js?hl=es

To do this you would need to alter the file /includes/functions/extra_functions/recaptchalib.php and detect the language being used by Zen. This however might lead to other difficulties - if for instance a Spanish person is looking at your site which is in Dutch and English, they may choose to see the site in English (because their English is better than their Dutch) then tieing the language for Google to the language for Zen would lead to that spanish person seeing an English reCaptcha rather than the Spanish version that they would see by default.

A bit of a rambling answer I'm afraid, but in short you don't have to do anything, your customers will see the reCaptcha in their own language

Regards
David

31 Jul 2015, 6:32 PM
#196
cj_dekrijger avatar

cj_dekrijger

New Zenner

Join Date:
Jul 2015
Location:
Hoofddorp
Posts:
76
Plugin Contributions:
0

Re: Support Thread for Google reCAPTCHA plugin

OK! David, thank you for your explanation ! , Cees

24 Aug 2015, 9:00 PM
#197
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Support Thread for Google reCAPTCHA plugin

David,
Thanks for the awesome module! Initial installation was a super simple.
I am atttempting to add the reCaptcha to the AJAX FAQ module following the tips you gave others on adding it to the ask a question module.
Unfortuantely I have not gotten far, with the added reCaptcha code to the class file for the faq when I click submit nothing happens...
You can take a look on the product page HERE by clicking on Ask A Question, just below the part number.
Any insight on how to get this working as well as it does on the other pages would be greatly appreciated.

25 Aug 2015, 11:32 AM
#198
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

mikestaps:

David,
Thanks for the awesome module! Initial installation was a super simple.
I am atttempting to add the reCaptcha to the AJAX FAQ module following the tips you gave others on adding it to the ask a question module.
Unfortuantely I have not gotten far, with the added reCaptcha code to the class file for the faq when I click submit nothing happens...
You can take a look on the product page HERE by clicking on Ask A Question, just below the part number.
Any insight on how to get this working as well as it does on the other pages would be greatly appreciated.

Hi Mike
Just had a quick look at it (nice site btw). I think what you need to do is in the class.faq_request.php file:

Add at the beginning of the function update (just after the global $messagestack):

$error=false;
$zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK');

then change the line 2 below from

if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject'])) {

to

if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject']) && $error==false) {

in the class.google_recaptcha.php file add (line 23 ish)

$pages_to_check[] =  'NOTIFY_FAQ_CAPTCHA_CHECK';

Hopefully that should sort it - if not I'll have another look

Regards
David

27 Aug 2015, 6:22 AM
#199
cvhainb avatar

cvhainb

Zen Follower

Join Date:
Sep 2008
Posts:
212
Plugin Contributions:
19

Re: Support Thread for Google reCAPTCHA plugin

I have tried to use this module for my client and it is a good module but there are a few problems when you try to use many Google Recaptcha on one page. It can not with this module. I think author needs to update the code with this code:

https://developers.google.com/recaptcha/docs/display#explicit_render

27 Aug 2015, 7:22 PM
#200
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 could have done it that way, but because stock Zen Cart only has one form per page it wouldn't be worth it. If you want several reCaptchas on the one page, you have correctly identified how to change things to make that work
Regards
David