Originally Posted by
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:
Code:
$this->attach($this, array('NOTIFY_CONTACT_US_CAPTCHA_CHECK', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK'));
to
Code:
$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.
Originally Posted by
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:
Code:
$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
Code:
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
Code:
$messageStack->add($event_array[$eventID], ENTRY_CAPTCHA_CHECK_ERROR);
Originally Posted by
mattys
Module and help appreciated, thanks.
Matt
Glad you are finding it useful.
Regards
David
Bookmarks