X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   reCAPTCHA for X-Cart Classic (https://forum.x-cart.com/showthread.php?t=74978)

nauticalstyle 09-12-2018 05:16 PM

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?

cherie 09-13-2018 12:10 PM

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.

nauticalstyle 09-13-2018 09:00 PM

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.

pablo 09-25-2018 01:43 AM

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)

cherie 09-25-2018 07:34 AM

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.

pablo 09-26-2018 12:27 AM

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.

cherie 09-26-2018 11:03 AM

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.

pablo 09-26-2018 11:08 PM

Re: reCAPTCHA for X-Cart Classic
 
And obviously they can't really use X-Cart without javascript anyway, so it's not needed.

pablo 11-06-2018 09:01 AM

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);
}

cherie 11-07-2018 08:12 AM

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.


All times are GMT -8. The time now is 06:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.