damian5000 Posted August 11, 2011 Share Posted August 11, 2011 Anyone use captcha with their Prestashop? Module or NOT... And how did they get it working? Thanks Link to comment Share on other sites More sharing options...
indus Posted August 12, 2011 Share Posted August 12, 2011 Anyone use captcha with their Prestashop? Module or NOT... And how did they get it working? Thanks Hi I used secureimage once.its easy to set up but is manual.This link http://www.phpcaptcha.org/documentation/quickstart-guide/ You download the folder and place it in root first.Then add the captcha code in the template you want, for example contactform.tpl.Then you place the validation code in controllers/formcontroller.php.If you follow the instructions on the site you can do it.In form controller you should place the validation code just before the submit code. First 2 parts of code go in form and last 2 in the form controller.tpl file.No need to add the php session start part,its already there. Or you can use some modules like slidecaptcha which is as slider you need to slide to activate the form.I dont know if it is effective but i use it for my site. I dont use recaptcha because it is difficult to read , i can tolerate spam but i dont like my customers being bothered with typing letters they cannot see. slide captcha is here http://catalogo-onlinersi.com.ar/en/add-ons-prestashop-modules/264-slide-captcha-prestashop-module.html 1 Link to comment Share on other sites More sharing options...
damian5000 Posted August 12, 2011 Author Share Posted August 12, 2011 Anyone use captcha with their Prestashop? Module or NOT... And how did they get it working? Thanks Hi I used secureimage once.its easy to set up but is manual.This link http://www.phpcaptcha.org/documentation/quickstart-guide/ You download the folder and place it in root first.Then add the captcha code in the template you want, for example contactform.tpl.Then you place the validation code in controllers/formcontroller.php.If you follow the instructions on the site you can do it.In form controller you should place the validation code just before the submit code. First 2 parts of code go in form and last 2 in the form controller.tpl file.No need to add the php session start part,its already there. Or you can use some modules like slidecaptcha which is as slider you need to slide to activate the form.I dont know if it is effective but i use it for my site. I dont use recaptcha because it is difficult to read , i can tolerate spam but i dont like my customers being bothered with typing letters they cannot see. slide captcha is here http://catalogo-onlinersi.com.ar/en/add-ons-prestashop-modules/264-slide-captcha-prestashop-module.html My friend. You be 'da man. I will check out your links. Link to comment Share on other sites More sharing options...
Scnd Posted January 31, 2013 Share Posted January 31, 2013 Sorry to bump this up, but I'm trying to implement this solution without success. I'm on 1.5.3.1. I easily managed to display the CAPTCHA image by editing authentication.tpl like this: <p class="required text"> <input type="text" name="captcha_code" size="10" maxlength="6" /> <label for="captcha_code">{l s='Security code'} <sup>*</sup></label> <br /> <img id="captcha" src="/securimage/securimage_show.php" alt="CAPTCHA" /> <a href="#" onclick="document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false">{l s='Different image'}</a> </p> Now, I don't know where to put the verification code. It should be something like: include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php'; $securimage = new Securimage(); if ($securimage->check($_POST['captcha_code']) == false){ $this->errors[] = Tools::displayError('Incorrect security code'); } What controller should I edit? Come on, we're almost there! Link to comment Share on other sites More sharing options...
Recommended Posts