Results 1 to 10 of 694

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: 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. #2
    Join Date
    Feb 2008
    Location
    Amersham, Buckinghamshire, United Kingdom
    Posts
    141
    Plugin Contributions
    1

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by mattys View Post
    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.

    Quote Originally Posted by mattys View Post
    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);
    Quote Originally Posted by mattys View Post
    Module and help appreciated, thanks.

    Matt
    Glad you are finding it useful.
    Regards
    David

  3. #3
    Join Date
    Jan 2010
    Posts
    6
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Feb 2008
    Location
    Amersham, Buckinghamshire, United Kingdom
    Posts
    141
    Plugin Contributions
    1

    Default 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. #5
    Join Date
    Jan 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    That was super fast answer! thank you.

    Nick

  6. #6
    Join Date
    Jun 2008
    Location
    Singapore, Australia, America
    Posts
    96
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Jun 2008
    Location
    Singapore, Australia, America
    Posts
    96
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by saplanet View Post
    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!

  8. #8
    Join Date
    Jan 2010
    Location
    Bulgaria
    Posts
    22
    Plugin Contributions
    2

    Default Only in "Contact Us", how?

    Quote Originally Posted by David Allen View Post
    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.
    ...
    Hi David,

    Thank You for your great contribution, it works fine for me and my ZenCart v1.5.1 site.
    My problem is that I can't make it work just for "Contact Us" page. I made the changes above, but still no luck.

    Thank You in advance!

    Zi

  9. #9
    Join Date
    Feb 2008
    Location
    Amersham, Buckinghamshire, United Kingdom
    Posts
    141
    Plugin Contributions
    1

    Default Re: Only in "Contact Us", how?

    Quote Originally Posted by znlambov View Post
    Hi David,

    Thank You for your great contribution, it works fine for me and my ZenCart v1.5.1 site.
    My problem is that I can't make it work just for "Contact Us" page. I made the changes above, but still no luck.

    Thank You in advance!

    Zi
    Hi Zi - did you remove the line in /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php

    Code:
    <fieldset>
        <?php echo recaptcha_get_html($publickey, $resp->error,$request_type == 'SSL'); ?>
    </fieldset>
    That should stop it being displayed

    Nice looking site btw

    Regards

  10. #10
    Join Date
    Jan 2010
    Location
    Bulgaria
    Posts
    22
    Plugin Contributions
    2

    Default Re: Only in "Contact Us", how?

    Hi Dave,

    I just did it, and was going to write it here . Thank You anyway

    I'm glad you liked the site, thanks again and best regards

 

 

Similar Threads

  1. Support Thread for CKEditor Plugin
    By DivaVocals in forum Addon Admin Tools
    Replies: 213
    Last Post: 18 Nov 2024, 04:17 AM
  2. Back to Top Plugin [Support Thread]
    By picaflor-azul in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 6 Feb 2016, 10:52 PM
  3. v151 Plug 'n' Pay plugin [Support Thread]
    By KetchRescue in forum Addon Payment Modules
    Replies: 5
    Last Post: 28 Nov 2015, 04:56 AM
  4. Justuno Plugin [Support Thread]
    By JustunoApp in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 May 2015, 11:00 PM
  5. VendingBox Plugin Support Thread
    By vb_support in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 10 Feb 2013, 07:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg