Was wondering if the developer is currently working on an upgrade to this plugin so that we can use it with google recaptcha v3? Or is there another plugin for this version? I haven't been able to locate one yet in my searches. thanks
Printable View
Was wondering if the developer is currently working on an upgrade to this plugin so that we can use it with google recaptcha v3? Or is there another plugin for this version? I haven't been able to locate one yet in my searches. thanks
Just in case someone also want to use Google reCAPTCHA in their 'Ask a Question' plugin,
below is how I made it works:
There are 3 files that need to be amended:
File 1: includes/classes/observers/class.google_recaptcha.php
Add this around line 24:
Change thisPHP Code:
$pages_to_check[] = 'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK';
to this:PHP Code:
$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
PHP Code:
$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' => 'contact');
File 2: includes/functions/extra_functions/recaptchalib.php
Change this (around line 70)
to this:PHP Code:
$event_array = array('contact_us' => 'contact', 'create_account' => 'create_account', 'reviews_write' => 'review_text');
PHP Code:
$event_array = array('contact_us' => 'contact', 'create_account' => 'create_account', 'reviews_write' => 'review_text', 'ask_a_question' => 'contact');
File 3: includes/templates/YOUR_TEMPLATE/templates/tpl_ask_a_question_default.php
Add this before </fieldset>:
The attached image shows how reCAPTCHA works in the Ask A Question pluginPHP Code:
<?php echo recaptcha_get_html(false); ?>
P.S. I'm using the latest version of both plugins:
- Google reCAPTCHA CAPTCHA - Version: 3.4
- Ask A Question - Version:2.2
Good Luck!
Just in case someone also want to use Google reCAPTCHA in their 'Ask a Question' plugin,
below is how I made it works:
There are 3 files that need to be amended:
File 1: includes/classes/observers/class.google_recaptcha.php
Add this around line 24:
Change thisPHP Code:
$pages_to_check[] = 'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK';
to this:PHP Code:
$event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
PHP Code:
$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' => 'contact');
File 2: includes/functions/extra_functions/recaptchalib.php
Change this (around line 70)
to this:PHP Code:
$event_array = array('contact_us' => 'contact', 'create_account' => 'create_account', 'reviews_write' => 'review_text');
PHP Code:
$event_array = array('contact_us' => 'contact', 'create_account' => 'create_account', 'reviews_write' => 'review_text', 'ask_a_question' => 'contact');
File 3: includes/templates/YOUR_TEMPLATE/templates/tpl_ask_a_question_default.php
Add this before </fieldset>:
The screenshot below shows how reCAPTCHA works in the Ask A Question pluginPHP Code:
<?php echo recaptcha_get_html(false); ?>
P.S. I'm using the latest version of both plugins:
- Google reCAPTCHA CAPTCHA - Version: 3.4
- Ask A Question - Version:2.2
Good Luck!
I just downloaded this file and am following the directions in the readme but the file it wants me to add the keys to does not appear to exist in either the downloaded file or in the server side directory.
I have not had a chance to test this plugin on 1.5.7 yet. I plan do but not sure when that will be yet.
As a side note.. reCaptcha v3 and v2 have been "broken" (robots can "solve" them)! Makes one wonder what robots are really thinking about when they can read images!
ZC157 has a built in anti spam filter that's works really well. If I remember right, this one use an observer that 157 also makes use of. it could be an issue as discussed on the known bug page here. Post #8.. Something to try.. as is I don't see an issue with the current code as long as you are merging with 157 forms and not replacing them.
Solved. Thanks Dave. https://github.com/zencart/zencart/pull/3654/files