View Single Post
  #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