Page 1 of 2 12 LastLast
Results 1 to 10 of 690

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by David Allen View Post
    Hi Invizix
    Yes it does - in the file /includes/classes/observers/class.google_recaptcha.php you just need to comment out the line
    Code:
    $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

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

    Default 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:
    Code:
    $zco_notifier->notify('NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK');
    and change the line below it from
    Code:
    if ($zc_validate_email and !empty($enquiry) and !empty($name)) {
    to
    Code:
    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
    Code:
    $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
    Code:
    <?php echo recaptcha_get_html(); ?>
    That should do it :)

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

    Default Re: Support Thread for Google reCAPTCHA plugin

    Hi Anne
    Opps forgot - in /includes/classes/observers/class.google_recaptcha.php line 42 change
    Code:
    $event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
    to
    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' => 'ask_a_question');

  4. #4
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by David Allen View Post
    Hi Anne
    Opps forgot - in /includes/classes/observers/class.google_recaptcha.php line 42 change
    Code:
    $event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
    to
    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' => 'ask_a_question');
    Thank you so much for taking the time to provide such a detailed answer. I really appreciate it

    Thanks,

    Anne

  5. #5
    Join Date
    Dec 2015
    Location
    AZ
    Posts
    2
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by David Allen View Post
    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:
    Code:
    $zco_notifier->notify('NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK');
    and change the line below it from
    Code:
    if ($zc_validate_email and !empty($enquiry) and !empty($name)) {
    to
    Code:
    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
    Code:
    $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
    Code:
    <?php echo recaptcha_get_html(); ?>
    That should do it :)

    I added the recaptcha to the Ask A Question as described. My only issue is that no error message is shown if they forget to mark the checkbox. How do I make the error message appear like it does on the Contact Us form?

  6. #6
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Any idea how to implement this on the Testimonials Page? I have it setup on all our other pages like Contact Us, Reviews, Create Account Etc. but been getting spam testimonials.

    Thank you

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

    Default Re: Support Thread for Google reCAPTCHA plugin

    Hi - I'm not familiar with the testimonials page, did you create it via a plugin?

    Regards

  8. #8
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by David Allen View Post
    Hi - I'm not familiar with the testimonials page, did you create it via a plugin?

    Regards
    Yes, it's a plugin called Testimonial Manager.

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

    Default Re: Support Thread for Google reCAPTCHA plugin

    Hi
    Sorry, looks like I missed one extra change to make
    In /includes/classes/observers/class.google_recaptcha.php change line number 42
    from
    Code:
    $event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
    to
    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');
    Then hopefully it should work

  10. #10
    Join Date
    Dec 2015
    Location
    AZ
    Posts
    2
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by David Allen View Post
    Hi
    Sorry, looks like I missed one extra change to make
    In /includes/classes/observers/class.google_recaptcha.php change line number 42
    from
    Code:
    $event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
    to
    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');
    Then hopefully it should work
    In an earlier post you had the code below, which I had originally used:

    Quote Originally Posted by David Allen View Post
    Hi Anne
    Opps forgot - in /includes/classes/observers/class.google_recaptcha.php line 42 change
    Code:
    $event_array = array('NOTIFY_CONTACT_US_CAPTCHA_CHECK' => 'contact', 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK' => 'create_account', 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK' => 'review_text');
    to
    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' => 'ask_a_question');
    So now I replaced the line below:
    'review_text','NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK' => 'ask_a_question')

    With:
    'review_text','NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK' => 'contact')

    And it worked perfectly.

    Thank you!

 

 
Page 1 of 2 12 LastLast

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