Results 1 to 10 of 690

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Hi David

    Thanks for this great mod. After installing on my version 1.5.1 site which uses FEC, I found it doesn't work on my account create page. I have the Fast and Easy Checkout plugin, which has it own fec_create_account.php file, installed. If just add "$zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');" into the fec_create_account.php, there is no error message appeared when the input is wrong. Could you help?

  2. #2
    Join Date
    Jul 2013
    Posts
    3
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    I'm having some issues getting the captcha to work on the Contact Us page. It shows up fine, but if you fill out the form and leave the captcha blank, or type the wrong words, it still submits the form. No errors at all. It DOES show the captcha error if you forget to fill out part of the form, though.

    Both the create account and new review pages work perfectly with the captcha. I tried manually adding the lines and I tried uploading all the files. Neither way worked.

    Using this on Zen Cart v1.3.9.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Support Thread for Google reCAPTCHA plugin

    Probably missing things from your 139 site that the plugin depends on.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jul 2013
    Posts
    3
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by DrByte View Post
    Probably missing things from your 139 site that the plugin depends on.
    Yea. This seems to be the case. I just did a clean install of 139 on another server and that fixed everything. Now I'm working on comparing the two sites to see whats different.

  5. #5
    Join Date
    Jul 2013
    Posts
    3
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Just solved the issue with the captcha not validating on the contact page.

    I had a backup of the header.php file (without the captcha) in the contact us folder under pages. I named the backup 'header.php-bak.php' and it seems like Zen Cart was loading that file instead of the one with the captcha script! Renaming the backup file to 'backup-header.php.php' solved the issue. (Of course deleting or moving the backup file to another location fixes it as well.l)

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Support Thread for Google reCAPTCHA plugin

    Right. Any files matching the pattern "header_php*.php" will be auto-loaded.

    Similar to ALL files ending in ".php".

    So, in the future, instead of renaming "fred.php" to "fred-bak.php", rename it from "fred.php" to "fred.bak" or "fred.php.bak".
    Basically, change the ".php" suffix instead of the prefix before it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    Hi guys

    I have managed to setup a contact form as a sidebox. i wold love to have captcha on it is spammed like nothing. I have tested the Google recaptcha and works perfectly but it is way to big for a sidebox. I need it to be around 200px and if anyone has any idea if that is possible and how will be great.

    Regards

    Tassos

  8. #8
    Join Date
    Aug 2009
    Posts
    44
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA plugin

    First, Thank you for this mod! I am trying to add to my store http://kidswithagrin.com
    It works on create an account but not on contact_us. I tried to manually modify the header_php.php file with no luck. Here is my original file. Do you see anything wrong? Thank you!

    <?php
    /**
    * Contact Us Page
    *
    * @package page
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: header_php.php 6202 2007-04-12 22:56:10Z drbyte $
    * Adapted by Joe McFrederick for reCAPTCHA text
    */
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    // reCAPTCHA mod BOF
    require(DIR_WS_CLASSES . 'recaptchalib.php');
    // reCAPTCHA mod EOF
    $error = false;
    if (isset($_GET['action']) && ($_GET['action'] == 'send')) {
    $name = zen_db_prepare_input($_POST['contactname']);
    $email_address = zen_db_prepare_input($_POST['email']);
    $enquiry = zen_db_prepare_input(strip_tags($_POST['enquiry']));


    $zc_validate_email = zen_validate_email($email_address);
    // reCAPTCHA mod BOF 1 of 2
    if(CONTACT_US_RECAPTCHA_STATUS == 'true')
    { // start modification for reCaptcha
    // the response from reCAPTCHA
    $resp = null;

    // was there a reCAPTCHA response?
    $resp = recaptcha_check_answer (CONTACT_US_RECAPTCHA_PRIVATE_KEY,
    $_SERVER["REMOTE_ADDR"],
    zen_db_prepare_input($_POST["recaptcha_challenge_field"]),
    zen_db_prepare_input($_POST["recaptcha_response_field"])
    );
    }
    // reCAPTCHA mod BOF 1 of 2

    if ($zc_validate_email and !empty($enquiry) and !empty($name))

    // auto complete when logged in

    if($_SESSION['customer_id']) {

 

 

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