Results 1 to 10 of 673

Threaded View

  1. #11
    Join Date
    Nov 2013
    Location
    Hong Kong
    Posts
    43
    Plugin Contributions
    0

    Idea or Suggestion Re: Support Thread for Google reCAPTCHA

    Just in case someone also want to use Google reCAPTCHA in their 'Ask a Question' plugin,
    below is how I made it works:

    There are 3 files that need to be amended:

    File 1: includes/classes/observers/class.google_recaptcha.php

    Add this around line 24:
    PHP Code:
    $pages_to_check[] =  'NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK'
    Change this
    PHP 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 this:
    PHP 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'); 

    File 2: includes/functions/extra_functions/recaptchalib.php

    Change this (around line 70)
    PHP Code:
    $event_array = array('contact_us' => 'contact''create_account' => 'create_account''reviews_write' => 'review_text'); 
    to this:
    PHP Code:
    $event_array = array('contact_us' => 'contact''create_account' => 'create_account''reviews_write' => 'review_text''ask_a_question' => 'contact'); 

    File 3: includes/templates/YOUR_TEMPLATE/templates/tpl_ask_a_question_default.php

    Add this before </fieldset>:
    PHP Code:
    <?php echo recaptcha_get_html(false); ?>
    The attached image shows how reCAPTCHA works in the Ask A Question plugin

    P.S. I'm using the latest version of both plugins:
    - Google reCAPTCHA CAPTCHA - Version: 3.4
    - Ask A Question - Version:2.2

    Good Luck!
    Attached Images Attached Images  

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR