zencart version 1.51
Add Google captcha plugin to prompt error "incorrect-captcha-sol"
I want the contact us page to use google captcha and upload the file corresponding to the plugin.
There is no frame showing Google captcha on the contact us page.
However, when you fill in the content and submit, an error will be prompted.
pre-v1.5.1/includes/modules/pages/contact-us/header_php.php
I found this file to be completely different from the default file for version 1.51. I added the following code according to the installation documentation.
In /includes/modules/pages/contact_us/header_php.php, at around line 19 you should see the line:
$zc_validate_email = zen_validate_email($email_address);
immediately after that add in the following code:
$zco_notifier->notify('NOTIFY_CONTACT_US_CAPTCHA_CHECK');
==================================================== ================
I have uploaded these files:
/includes/auto_loaders/config.google_recaptcha.php
/includes/classes/observers/class.google_recaptcha.php
/includes/functions/extra_functions /recaptchalib.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php
pre-v1.5.1/includes/modules/pages/contact-us/header_php.php
=============== =========================================
I didn't upload these files:
/includes/模板/YOUR_TEMPLATE/templates/tpl_modules_create_account.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_product_reviews_write_default.php
pre-v1.5.1/includes/modules/pages/product_reviews_write/
header_php.php pre-v1.5.1/includes/modules/YOUR_TEMPLATE/create_account.php


Reply With Quote
