Results 1 to 10 of 692

Threaded View

  1. #10
    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

 

 

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