Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Location
    St. Catharines, ON Canada
    Posts
    91
    Plugin Contributions
    0

    Default Google reCaptcha

    I’ve switched from OpenCart to Zen-Carr 1.5.6c and quickly found out I needed to install a captcha to stop the berrage of spam I started to get.
    I have installed Google reCaptcha but I’m having trouble finding out where line from step 3 goes.
    At present if you go to https://afghansniagara.ca and try to create an account it puts a warning that says to make sure you’re not a robot but doesn’t show the checkbox.
    I sent a message to the person that made the module but I would like to get this working ASAP.
    If anyone can help me with this please tell me the name/location of the file to edit and at which place to put that little bit of code.

    Thanks

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Google reCaptcha

    Here's another potential option for you to use if you don't get any satisfaction from the one you are currently attempting.
    Zen NonCAPTCHA CAPTCHA

    https://www.zen-cart.com/downloads.php?do=file&id=2207
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  3. #3
    Join Date
    Oct 2012
    Location
    St. Catharines, ON Canada
    Posts
    91
    Plugin Contributions
    0

    Default Re: Google reCaptcha

    Thank you. I’ll keep that in mind.

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,748
    Plugin Contributions
    0

    Default Re: Google reCaptcha

    If you only want it on the contact us page you can follow this procedure

    Copy /includes/templates/template_default/templates/tpl_contact_us_default.php to /includes/templates/responsive_classic/templates/
    Then edit that file and find this code
    Code:
    <?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
    insert the <?php echo recaptcha_get_html(); ?> after that line

    then go to /includes/classes/observers/class.google_recaptcha.php an edit the following section
    Code:
    	//comment out any pages you do NOT want to check
    		$pages_to_check[] =  'NOTIFY_CONTACT_US_CAPTCHA_CHECK';
    		$pages_to_check[] =  'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK';
    		$pages_to_check[] =  'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK';
    		$this->attach($this,$pages_to_check);
    	}
    So that it looks like this
    Code:
    	//comment out any pages you do NOT want to check
    		$pages_to_check[] =  'NOTIFY_CONTACT_US_CAPTCHA_CHECK';
    		//$pages_to_check[] =  'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK';
    		//$pages_to_check[] =  'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK';
    		$this->attach($this,$pages_to_check);
    	}
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Oct 2012
    Location
    St. Catharines, ON Canada
    Posts
    91
    Plugin Contributions
    0

    Default Re: Google reCaptcha

    Thank for the info barco57.

    I followed your directions but at first I still got the red warning to make sure I'm not a robot.

    Then I noticed that the line: //$pages_to_check[] = 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK'; had been commented out so I removed the // and it appears to be working.
    I created an account for myself but did not have to check anything to show I wasn't a robot. Is this how the Google reCaptcha is supposed to work?

 

 

Similar Threads

  1. v150 Support Thread for Google reCAPTCHA plugin
    By David Allen in forum All Other Contributions/Addons
    Replies: 638
    Last Post: 31 Jan 2024, 04:03 PM
  2. Is google recaptcha the only captcha plugin available?
    By one tall man in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Mar 2018, 05:50 PM
  3. Replies: 4
    Last Post: 27 Feb 2016, 12:43 PM
  4. Google NEW (2014 version) reCAPTCHA 2.0
    By marcopolo in forum General Questions
    Replies: 0
    Last Post: 14 Jun 2015, 06:54 PM
  5. v150 Installing old Google ReCaptcha addon - ZC1.50
    By Miff in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 28 Feb 2012, 07:37 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