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
  #51  
Old 09-12-2018, 05:16 PM
  nauticalstyle's Avatar 
nauticalstyle nauticalstyle is offline
 

Advanced Member
  
Join Date: Jun 2012
Posts: 49
 

Default Re: reCAPTCHA for X-Cart Classic

The 4.7.8 to 4.7.9 upgrade tries to patch a number of files with Google reCaptcha Module code, including include/login.php. Do I keep Phil's reCAPTCHA for X-Cart Classic code or do I have to undo all those mods?
__________________
Tony
Skipper at Nautical Style
X-Cart Gold Version 4.7.12
X-Cart reBOOT (reDUX) Template 4.7.12.5 (in development)
Reply With Quote
  #52  
Old 09-13-2018, 12:10 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: reCAPTCHA for X-Cart Classic

Quote:
Originally Posted by nauticalstyle
The 4.7.8 to 4.7.9 upgrade tries to patch a number of files with Google reCaptcha Module code, including include/login.php. Do I keep Phil's reCAPTCHA for X-Cart Classic code or do I have to undo all those mods?
Both codes can coexist so you should not need to change anything.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #53  
Old 09-13-2018, 09:00 PM
  nauticalstyle's Avatar 
nauticalstyle nauticalstyle is offline
 

Advanced Member
  
Join Date: Jun 2012
Posts: 49
 

Default Re: reCAPTCHA for X-Cart Classic

Quote:
Originally Posted by cherie
Both codes can coexist so you should not need to change anything.




I had to manually patch these four files:


include/login.php
include/templater/plugins/function.load_defer_code.php
modules/Froogle/froogle.php
skin/common_files/customer/main/send_to_friend.tpl


Unfortunately I just get a blank screen on my first attempt at loading the v4.7.9 site after all the patches were applied (I'm working on my PC in a localhost development environment running XAMPP). So I'm now trying to debug.


Once I get v4.7.9 running properly I will be installing Phil's reBoot template.
__________________
Tony
Skipper at Nautical Style
X-Cart Gold Version 4.7.12
X-Cart reBOOT (reDUX) Template 4.7.12.5 (in development)
Reply With Quote
  #54  
Old 09-25-2018, 01:43 AM
 
pablo pablo is offline
 

Member
  
Join Date: Aug 2005
Posts: 27
 

Default Re: reCAPTCHA for X-Cart Classic

Wondering if this line is necessary?

<noscript><meta http-equiv="refresh" content="0.0;url=home.php"></noscript>

In the reCAPTCHA_js.tpl file.

It's just that a site audit in SEMRush is saying that the meta refresh is an "issue".

Is it an issue?

(X-Cart 4.6.6)
__________________
Version 5.3
Reply With Quote
  #55  
Old 09-25-2018, 07:34 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: reCAPTCHA for X-Cart Classic

I'm guessing it's necessary and seems innocuous. Not sure what issue they are seeing with it. Maybe they don't realize it's in a noscript tag and think you are doing an incorrect redirect.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #56  
Old 09-26-2018, 12:27 AM
 
pablo pablo is offline
 

Member
  
Join Date: Aug 2005
Posts: 27
 

Default Re: reCAPTCHA for X-Cart Classic

Thanks for the reply.

SEMRush just flags it as an issue, saying that meta refresh is a bad way to do things as it slows the page down etc doing the redirect.
__________________
Version 5.3
Reply With Quote
  #57  
Old 09-26-2018, 11:03 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: reCAPTCHA for X-Cart Classic

You should be able to ignore that recommendation since this is just a failsafe for when the visitor is not using JavaScript.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #58  
Old 09-26-2018, 11:08 PM
 
pablo pablo is offline
 

Member
  
Join Date: Aug 2005
Posts: 27
 

Default Re: reCAPTCHA for X-Cart Classic

And obviously they can't really use X-Cart without javascript anyway, so it's not needed.
__________________
Version 5.3
Reply With Quote
  #59  
Old 11-06-2018, 09:01 AM
 
pablo pablo is offline
 

Member
  
Join Date: Aug 2005
Posts: 27
 

Default Re: reCAPTCHA for X-Cart Classic

Hi
I'm getting a lot of spam through the unprotected "Ask a question about this product form" - which will probably surprise you all as much as it did me.

I'm attempting to extend this module to cover this form too, and have got it working up to a point.

The point being that if Recaptcha isn't filled, I just get a loading page.

I believe the problem will be the code I've added to popup_ask.php

The last line - what should this be please?

if ($bad_captcha) {
$top_message['content'] = func_get_langvar_by_name('lbl_reCAPTCHA_error');
$top_message['type'] = 'E';
func_header_location('popup_ask.php?productid=' . $productid);
}
__________________
Version 5.3
Reply With Quote
  #60  
Old 11-07-2018, 08:12 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: reCAPTCHA for X-Cart Classic

Quote:
Originally Posted by pablo
I'm getting a lot of spam through the unprotected "Ask a question about this product form"
An option is to enable Image Verification for only this form since some improvements have been made to this module in 4.7.10.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
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 04:54 AM.

   

 
X-Cart forums © 2001-2020