Results 1 to 10 of 694

Hybrid View

  1. #1
    Join Date
    Jul 2015
    Location
    Hoofddorp
    Posts
    76
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    OK! David, thank you for your explanation ! , Cees

  2. #2
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Support Thread for Google reCAPTCHA plugin

    David,
    Thanks for the awesome module! Initial installation was a super simple.
    I am atttempting to add the reCaptcha to the AJAX FAQ module following the tips you gave others on adding it to the ask a question module.
    Unfortuantely I have not gotten far, with the added reCaptcha code to the class file for the faq when I click submit nothing happens...
    You can take a look on the product page HERE by clicking on Ask A Question, just below the part number.
    Any insight on how to get this working as well as it does on the other pages would be greatly appreciated.

  3. #3
    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 mikestaps View Post
    David,
    Thanks for the awesome module! Initial installation was a super simple.
    I am atttempting to add the reCaptcha to the AJAX FAQ module following the tips you gave others on adding it to the ask a question module.
    Unfortuantely I have not gotten far, with the added reCaptcha code to the class file for the faq when I click submit nothing happens...
    You can take a look on the product page HERE by clicking on Ask A Question, just below the part number.
    Any insight on how to get this working as well as it does on the other pages would be greatly appreciated.

    Hi Mike
    Just had a quick look at it (nice site btw). I think what you need to do is in the class.faq_request.php file:

    Add at the beginning of the function update (just after the global $messagestack):
    Code:
    $error=false;
    $zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK');
    then change the line 2 below from
    Code:
    if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject'])) {
    to
    Code:
    if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject']) && $error==false) {
    in the class.google_recaptcha.php file add (line 23 ish)
    Code:
    $pages_to_check[] =  'NOTIFY_FAQ_CAPTCHA_CHECK';
    Hopefully that should sort it - if not I'll have another look

    Regards
    David

  4. #4
    Join Date
    Sep 2008
    Posts
    210
    Plugin Contributions
    21

    Default Re: Support Thread for Google reCAPTCHA plugin

    I have tried to use this module for my client and it is a good module but there are a few problems when you try to use many Google Recaptcha on one page. It can not with this module. I think author needs to update the code with this code:

    https://developers.google.com/recapt...xplicit_render
    Our Site: http://zucando.com
    Marketing Plugins: Marketing Modules
    Free Response Templates: Responsive Templates

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

    Default Re: Support Thread for Google reCAPTCHA plugin

    I could have done it that way, but because stock Zen Cart only has one form per page it wouldn't be worth it. If you want several reCaptchas on the one page, you have correctly identified how to change things to make that work
    Regards
    David

  6. #6
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by David Allen View Post
    Hi Mike
    Just had a quick look at it (nice site btw). I think what you need to do is in the class.faq_request.php file:

    Add at the beginning of the function update (just after the global $messagestack):
    Code:
    $error=false;
    $zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK');
    then change the line 2 below from
    Code:
    if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject'])) {
    to
    Code:
    if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject']) && $error==false) {
    in the class.google_recaptcha.php file add (line 23 ish)
    Code:
    $pages_to_check[] =  'NOTIFY_FAQ_CAPTCHA_CHECK';
    Hopefully that should sort it - if not I'll have another look

    Regards
    David
    David,
    Thanks. I finally got a chance to get back to this (one of the many challenges of being a small business and doing our own site development!). After the changes you suggested are put in place the product info page dies with the following error:
    PHP Fatal error: Call to a member function notify() on a non-object in /home3/wwwsica/public_html/store-1st_1-5-4/includes/classes/observers/class.faq_request.php on line 38

    That is the $zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK'); line I added in. I am gong to commect the line out for now intil I can find the solution.
    Thanks again

    Mike
    Last edited by DrByte; 24 Sep 2015 at 04:51 PM. Reason: edited as requested

  7. #7
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Support Thread for Google reCAPTCHA plugin

    Ok so I have made a few more attempts at putting this in to the Ajax FAQ module, with no luck. Everything shows, but the check doesn't happen, and the question is sent regardless of the reCaptcha.
    Like I said b4 the $zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK'); inside of the class.faq_request.php kills the page with an error, so I tried moving the notify to the tpl_modules_faq_questions.php file. Top or bottom of the file this didn't work.

    Also as this is an ajax pop-up how would I add it to the $event_array line in the class.google_recaptcha.php file?

    Thanks for any ideas

  8. #8
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by mikestaps View Post
    Ok so I have made a few more attempts at putting this in to the Ajax FAQ module, with no luck. Everything shows, but the check doesn't happen, and the question is sent regardless of the reCaptcha.
    Like I said b4 the $zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK'); inside of the class.faq_request.php kills the page with an error, so I tried moving the notify to the tpl_modules_faq_questions.php file. Top or bottom of the file this didn't work.

    Also as this is an ajax pop-up how would I add it to the $event_array line in the class.google_recaptcha.php file?

    Thanks for any ideas
    mikestaps did you ever get this working on the FAQ page? I'm having a similar problem.

  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. To fix the $zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK') error, I think all you need to do is add
    Code:
    global $zco_notofier;
    just before it
    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