Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

reCAPTCHA for X-Cart Classic
 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #11  
Old 03-07-2017, 06:46 AM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,405
 

Default Re: reCAPTCHA for X-Cart Classic

7th Mar 2017 - Now works with 'Send to Friend' form.
__________________
xcartmods.co.uk
reBOOT Template | Ultra Template

reBOOT 'reDUX' In Development... ETA Nov.
Reply With Quote
  #12  
Old 04-03-2017, 07:32 PM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,405
 

Default Re: reCAPTCHA for X-Cart Classic

4th Apr 2017 - CURL version if 'file_get_contents' is disabled, also included (thanks to Nathaniël)
__________________
xcartmods.co.uk
reBOOT Template | Ultra Template

reBOOT 'reDUX' In Development... ETA Nov.
Reply With Quote

The following 2 users thank PhilJ for this useful post:
cherie (04-04-2017), herber@wirehub.nl (04-09-2017)
  #13  
Old 07-29-2017, 02:43 PM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,405
 

Default Re: reCAPTCHA for X-Cart Classic

29th Jul 2017 - Now works with login.php
__________________
xcartmods.co.uk
reBOOT Template | Ultra Template

reBOOT 'reDUX' In Development... ETA Nov.
Reply With Quote

The following user thanks PhilJ for this useful post:
elmirage001 (07-30-2017)
  #14  
Old 08-08-2017, 08:29 AM
 
susilosaja susilosaja is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 87
 

Default Re: reCAPTCHA for X-Cart Classic

Thanks for the module phil. Been getting thousands of spam registration.

Questions :
1. On google admin site, there's the setting "Security Preference", which consists of 3 choices : Easiest for user, Most Secure, and one in the middle. What is the recommended setting?

2. I notice sometimes the recaptcha asked the user to click some images, multiple times, for extra verification. Won't this be too much for a real customer?
__________________
Susilo
X-Cart 4.7.6 Gold Plus
Template : Ultra Responsive Template
Search module : Cloud Search
PHP 7
Reply With Quote
  #15  
Old 08-08-2017, 09:42 PM
 
susilosaja susilosaja is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 87
 

Default Re: reCAPTCHA for X-Cart Classic

I noticed that when we disabled the recaptcha module, but still left the "enabled" setting in that module checked, it still check for the recaptcha. The user is then unable to pass the recaptcha check, even though there's no recaptcha on the form.

So on the php file, I add the checking whether the module is active. For example in register.php :

// reCAPTCHA
if ($current_area == 'C' && $main != 'checkout' && $config['reCAPTCHA']['reCAPTCHA_enabled'] == "Y" && $config['reCAPTCHA']['reCAPTCHA_site_key'] && $config['reCAPTCHA']['reCAPTCHA_secret_key']) {
include $xcart_dir . '/modules/reCAPTCHA/recaptcha_check_register.php';
}
// /reCAPTCHA

I change it to :

// reCAPTCHA
if ($current_area == 'C' && $main != 'checkout' &&
!empty($active_modules["reCAPTCHA"]) && $config['reCAPTCHA']['reCAPTCHA_enabled'] == "Y" &&
$config['reCAPTCHA']['reCAPTCHA_site_key'] && $config['reCAPTCHA']['reCAPTCHA_secret_key'])
{
include $xcart_dir . '/modules/reCAPTCHA/recaptcha_check_register.php';
}
// /reCAPTCHA
__________________
Susilo
X-Cart 4.7.6 Gold Plus
Template : Ultra Responsive Template
Search module : Cloud Search
PHP 7
Reply With Quote
  #16  
Old 10-09-2017, 12:05 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 679
 

Default Re: reCAPTCHA for X-Cart Classic

I installed the Recaptcha mod a while ago and I don't see anywhere to make it active when a customer leaves a product review. It only seems to work on Registration page, contact us, and sand to a friend by default, how did you all get it onto the advanced customer reviews page?

This is on a 4.6.0 classic store.
Thanks.
__________________
www.uscandleco.com - Version 4.6.6
mods:
Reboot template
cdseo pro
AC-one page checkout
running on UNIX

www.keystonecandle.com -Version 4.6.0
mods:
cdseo pro
AC-onsale
running on UNIX
Reply With Quote
  #17  
Old 10-09-2017, 08:38 PM
 
susilosaja susilosaja is offline
 

Advanced Member
  
Join Date: Feb 2013
Posts: 87
 

Default Re: reCAPTCHA for X-Cart Classic

I can't remember exactly, so I may be wrong here. I dont think the recaptcha module provide verification for reviews. The Image Verification module has it though. It's what I use for reviews page.
__________________
Susilo
X-Cart 4.7.6 Gold Plus
Template : Ultra Responsive Template
Search module : Cloud Search
PHP 7
Reply With Quote
  #18  
Old 10-10-2017, 07:01 AM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,405
 

Default Re: reCAPTCHA for X-Cart Classic

I'm making some changes to this mod to include customer reviews, plus have the ability to use multiple reCAPTCHAs on the same page. I'll post here when it's ready.
__________________
xcartmods.co.uk
reBOOT Template | Ultra Template

reBOOT 'reDUX' In Development... ETA Nov.
Reply With Quote
  #19  
Old 10-10-2017, 11:44 AM
  PhilJ's Avatar 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,405
 

Default Re: reCAPTCHA for X-Cart Classic

Updated, reworked. Quite a few changes, see install.txt

- On template pages, the upper form JS is no longer required. JS goes in skin/common_files/customer/service_js.tpl
- Can now have multiple reCAPTCHAs on same page, which is handy if you have your own custom forms
- Now works with customer reviews, basic and advanced modules - DEMO
- Now works with password recovery page - DEMO
- Now works with newsletter subscription page - DEMO

DOWNLOAD

I suggest reuploading the files and going through the install again. No need to re-patch DB.

It's not necessary for the login modal popup... JS is required for modals and the mod detects if JS is enabled.
__________________
xcartmods.co.uk
reBOOT Template | Ultra Template

reBOOT 'reDUX' In Development... ETA Nov.
Reply With Quote

The following 3 users thank PhilJ for this useful post:
cherie (10-10-2017), elmirage001 (10-10-2017), ITVV (10-10-2017)
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:41 AM.

   

 
X-Cart forums © 2001-2017