juanv Posted March 31, 2011 Share Posted March 31, 2011 HiHope someone can help, iam looking for an free captcha (contact form) that works with ver 1.4 stable ? I tried the others thats available for earlier releases but with no success...Any advice or info would be much appreciated!Thank you Link to comment Share on other sites More sharing options...
rollof1 Posted May 11, 2011 Share Posted May 11, 2011 Same request here. Link to comment Share on other sites More sharing options...
Sticki Posted May 23, 2011 Share Posted May 23, 2011 Same request here, too. Link to comment Share on other sites More sharing options...
leszekem Posted May 23, 2011 Share Posted May 23, 2011 again , same request!anyone? Link to comment Share on other sites More sharing options...
Sticki Posted June 6, 2011 Share Posted June 6, 2011 nobody know this? Link to comment Share on other sites More sharing options...
aioannidis Posted June 29, 2011 Share Posted June 29, 2011 Anybody who can help with this? Link to comment Share on other sites More sharing options...
theme_designer Posted June 29, 2011 Share Posted June 29, 2011 Check this addon.http://addons.prestashop.com/en/front-office-features/625-captcha.html Link to comment Share on other sites More sharing options...
aioannidis Posted June 29, 2011 Share Posted June 29, 2011 Check this addon.http://addons.prestashop.com/en/front-office-features/625-captcha.html The addon you mention isn't working in prestashop 1.4, at least not without making any changes to its' code. Do you have some direction on how to make it work properly? I am not using ps default theme by the way.Thanks for your reply Link to comment Share on other sites More sharing options...
phrasespot Posted June 29, 2011 Share Posted June 29, 2011 Adding reCAPTCHA to contact form (for version 1.4.x)- Create an account/login to https://www.google.com/recaptcha/- Create public/private keys for your domain- Download latest library from Google: http://recaptcha.googlecode.com/files/recaptcha-php-1.11.zip- Unzip and (for ease of use) rename folder to recaptcha, delete example files so you end up with the folder structure: recaptcha LICENSE README recaptchalib.php - Edit attached ContactController.php to enter public and private keys you obtained from Google- Make a copy of /themes/[your theme]/contact-form.tpl- Modify the original /themes/[your theme]/contact_form.tpl to add the contents of attached add_recaptcha.txt immediately above the code shown below, at the very bottom of the file <!-- insert contents of add_recaptcha.txt here --> <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large"> </form> {/if} - Upload recaptcha folder and its contents to the root of your installation- Upload modified /themes/[your theme]/contact_form.tpl- Upload ContactController.php to /override/controllers/ directory- Test contact form- If everything OK, delete /themes/[your theme]/contact_form.tpl copy you made- User facing wording in add-recaptcha.txt can be modified to your liking before adding it to contact-form.tpl or in back office >> translations. - add_recaptcha.txt uses a white theme. See http://code.google.com/apis/recaptcha/docs/customization.html for other colour themes and modify to your liking within script tag var RecaptchaOptions = { theme : 'theme_name' }; .- It is possible to add more options within that scrip element. See above URL for extra options.- The style element in add_recaptcha.txt is there to center the recaptcha, so it is optional. <style type="text/css"> #recaptcha_area { margin: 0 auto;} </style> ----Edited to add:I could turn this into a module but I cannot think of a clean way to modify the tpl file that will survive across updates and theme changes. I could:- Backup and replace the theme tpl during module installation, but then a theme change must be hooked as well.- Insert captcha code on the fly using JavaScript (since CAPTCHA required JavaScript to work anyway)both of these seem messy solutions to me. Any ideas? ContactController.php add_recaptcha.txt 3 Link to comment Share on other sites More sharing options...
indus Posted July 5, 2011 Share Posted July 5, 2011 Adding reCAPTCHA to contact form (for version 1.4.x)- Create an account/login to https://www.google.com/recaptcha/- Create public/private keys for your domain- Download latest library from Google: http://recaptcha.googlecode.com/files/recaptcha-php-1.11.zip- Unzip and (for ease of use) rename folder to recaptcha, delete example files so you end up with the folder structure: recaptcha LICENSE README recaptchalib.php - Edit attached ContactController.php to enter public and private keys you obtained from Google- Make a copy of /themes/[your theme]/contact-form.tpl- Modify the original /themes/[your theme]/contact_form.tpl to add the contents of attached add_recaptcha.txt immediately above the code shown below, at the very bottom of the file <!-- insert contents of add_recaptcha.txt here --> <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large"> </form> {/if} - Upload recaptcha folder and its contents to the root of your installation- Upload modified /themes/[your theme]/contact_form.tpl- Upload ContactController.php to /override/controllers/ directory- Test contact form- If everything OK, delete /themes/[your theme]/contact_form.tpl copy you made- User facing wording in add-recaptcha.txt can be modified to your liking before adding it to contact-form.tpl or in back office >> translations. - add_recaptcha.txt uses a white theme. See http://code.google.com/apis/recaptcha/docs/customization.html for other colour themes and modify to your liking within script tag var RecaptchaOptions = { theme : 'theme_name' }; .- It is possible to add more options within that scrip element. See above URL for extra options.- The style element in add_recaptcha.txt is there to center the recaptcha, so it is optional. <style type="text/css"> #recaptcha_area { margin: 0 auto;} </style> ----Edited to add:I could turn this into a module but I cannot think of a clean way to modify the tpl file that will survive across updates and theme changes. I could:- Backup and replace the theme tpl during module installation, but then a theme change must be hooked as well.- Insert captcha code on the fly using JavaScript (since CAPTCHA required JavaScript to work anyway)both of these seem messy solutions to me. Any ideas? Great post.I followed this and got a recaptcha working on the contact form .Maybe a little change in code should make this work on other forms too. Link to comment Share on other sites More sharing options...
djrbx Posted October 19, 2011 Share Posted October 19, 2011 Could you help me? I followed the directions but couldn't get it to work on 1.4.4.1. Once done and I click on the contact form link, I get the "could not find page error" Link to comment Share on other sites More sharing options...
phrasespot Posted October 19, 2011 Share Posted October 19, 2011 I don't know why it is not working with 1.4.4.1. It has been in my TODO list to turn this into a module at some point though now I am not certain how useful CAPTCHAs will be after the paper by El Ahmad, Yan and Tayara. The whole thing seems like an exercise in futulity and p****ing off legitimate users. It is not really worth spending any time on it, and as long as it requires manually modifying core files, someone will have problems with it. I will come back to it if Prestashop devs adds a hook to the contact form ( a couple of lines for them). Harass them and I will build a module for you if it the hook is added 3 Link to comment Share on other sites More sharing options...
djrbx Posted October 20, 2011 Share Posted October 20, 2011 Thanks for your time though. I'm sure it works great and I understand that not all installations are the same. I may contact you in the future for custom modules if you do not mind. Link to comment Share on other sites More sharing options...
phrasespot Posted October 20, 2011 Share Posted October 20, 2011 Thanks for your time though You're welcome, sorry it does not work for you. I will test it on a 1.4.4.1 at some point. I cannot say when though. If anyone got it working with 1.4.4.1 let us know please. ...if you do not mind. No, not at all. Link to comment Share on other sites More sharing options...
preerp10 Posted November 16, 2011 Share Posted November 16, 2011 I found this thread by searching for a captcha for the contact form too. After reading that paper (link in reply 12) it got me thinking... I wonder how hard it would be to put a picture in the form with a field where the user must type in the object in the picture. If it was a static picture that would be really simple and it would be far less of an inconvenience that trying to get those recaptchas figured out. For example, if there was a picture of a bear. Users would type in "bear" in the field in order to get the form to submit. Of course it could be set up for different languages too. Link to comment Share on other sites More sharing options...
shoreacres Posted May 22, 2012 Share Posted May 22, 2012 thank you for the great post. i am using prestashop 1.4.8.2, i have followed the instruction to recaptcha on the contact form. recaptcha is not showing up on the contact form but when i send test message, it give error that " incorrect response to CAPTCHA challenge. Please try again ". any idea why it's not showing up on the contact form. Link to comment Share on other sites More sharing options...
tdr170 Posted May 22, 2012 Share Posted May 22, 2012 You must Follow the directions closely I have had a working Captcha from this exact post for some time. Make sure when you create your Captcha account that you have the correct url to your site. Be sure that you have pasted the Public and Private keys correctly into the ContactController.php file. Make sure you have a recaptcha folder in the root of the shop with the recaptchalib.php file inside. This has worked for me in 1.4.6.8 - 1.4.8.2 1 Link to comment Share on other sites More sharing options...
Lex-Luthor Posted June 6, 2012 Share Posted June 6, 2012 (edited) good job As would be done for use in the form of new users thanks Edited June 6, 2012 by Lex-Luthor (see edit history) Link to comment Share on other sites More sharing options...
shoreacres Posted June 7, 2012 Share Posted June 7, 2012 Thanks tdr170, it's working now. followed step by step and removed the memory cache. it worked perfactly You must Follow the directions closely I have had a working Captcha from this exact post for some time. Make sure when you create your Captcha account that you have the correct url to your site. Be sure that you have pasted the Public and Private keys correctly into the ContactController.php file. Make sure you have a recaptcha folder in the root of the shop with the recaptchalib.php file inside. This has worked for me in 1.4.6.8 - 1.4.8.2 Link to comment Share on other sites More sharing options...
tdr170 Posted June 10, 2012 Share Posted June 10, 2012 Great Job some times a little patients pays off !!! Link to comment Share on other sites More sharing options...
Matache Posted August 5, 2012 Share Posted August 5, 2012 Hi , I installed everything works fine and I would like to know how I get on the page contact the Italian translation. Regards Link to comment Share on other sites More sharing options...
d4zza Posted October 29, 2012 Share Posted October 29, 2012 Does this work for user registration as well? I am in dire need of a Captcha Module for registrations. Link to comment Share on other sites More sharing options...
RapiCompras Posted November 4, 2012 Share Posted November 4, 2012 Hi! Great addon. ONly want to know if you already installed on a PS 1.5.2 ? And if you have any zip to install on the BO of the Modules? Thanks FAHR rapicompras.com Link to comment Share on other sites More sharing options...
RapiCompras Posted November 5, 2012 Share Posted November 5, 2012 hey i am having...but the thing is it is only for single domain. I cannot redistribute it...sorry :-( Congratulations for you!! Right now I found and make the installation of Captcha Module for FREE, you can find it on www.zprofess.com They have great technical support and great service! I recommend it. Thanks all and regards, FAHR Link to comment Share on other sites More sharing options...
miko1979 Posted December 5, 2012 Share Posted December 5, 2012 Adding reCAPTCHA to contact form (for version 1.4.x) - Create an account/login to https://www.google.com/recaptcha/ - Create public/private keys for your domain - Download latest library from Google: http://recaptcha.goo...ha-php-1.11.zip - Unzip and (for ease of use) rename folder to recaptcha, delete example files so you end up with the folder structure: recaptcha LICENSE README recaptchalib.php - Edit attached ContactController.php to enter public and private keys you obtained from Google - Make a copy of /themes/[your theme]/contact-form.tpl - Modify the original /themes/[your theme]/contact_form.tpl to add the contents of attached add_recaptcha.txt immediately above the code shown below, at the very bottom of the file <!-- insert contents of add_recaptcha.txt here --> <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large"> </form> {/if} - Upload recaptcha folder and its contents to the root of your installation - Upload modified /themes/[your theme]/contact_form.tpl - Upload ContactController.php to /override/controllers/ directory - Test contact form - If everything OK, delete /themes/[your theme]/contact_form.tpl copy you made - User facing wording in add-recaptcha.txt can be modified to your liking before adding it to contact-form.tpl or in back office >> translations. - add_recaptcha.txt uses a white theme. See http://code.google.c...tomization.html for other colour themes and modify to your liking within script tag var RecaptchaOptions = { theme : 'theme_name' }; . - It is possible to add more options within that scrip element. See above URL for extra options. - The style element in add_recaptcha.txt is there to center the recaptcha, so it is optional. <style type="text/css"> #recaptcha_area { margin: 0 auto;} </style> ---- Edited to add: I could turn this into a module but I cannot think of a clean way to modify the tpl file that will survive across updates and theme changes. I could: - Backup and replace the theme tpl during module installation, but then a theme change must be hooked as well. - Insert captcha code on the fly using JavaScript (since CAPTCHA required JavaScript to work anyway) both of these seem messy solutions to me. Any ideas? Hello, i have a problem after the submit : white page in this message : "Could not open socket" thank you for your help ! Michael Link to comment Share on other sites More sharing options...
giokookie Posted December 11, 2012 Share Posted December 11, 2012 (edited) I followed the instructions below and got it working perfectly. However, i actually tried all the steps a few times as the box and send button was not showing up at first and then i cleared the smarty cache & compile & and then everything worked. (should have thought of that earlier ) Thanks so much for the tips phrasespot! Btw, could anyone be able to tell me how to move the captcha box to the middle of the form as it's now on the left? Also, can i use it on more then 1 form? I tried adding it to productquestion.tpl as well but only the text showed up. Thanks in advance! Adding reCAPTCHA to contact form (for version 1.4.x) - Create an account/login to https://www.google.com/recaptcha/ - Create public/private keys for your domain - Download latest library from Google: http://recaptcha.googlecode.com/files/recaptcha-php-1.11.zip - Unzip and (for ease of use) rename folder to recaptcha, delete example files so you end up with the folder structure: recaptcha LICENSE README recaptchalib.php - Edit attached ContactController.php to enter public and private keys you obtained from Google - Make a copy of /themes/[your theme]/contact-form.tpl - Modify the original /themes/[your theme]/contact_form.tpl to add the contents of attached add_recaptcha.txt immediately above the code shown below, at the very bottom of the file {/if} - Upload recaptcha folder and its contents to the root of your installation - Upload modified /themes/[your theme]/contact_form.tpl - Upload ContactController.php to /override/controllers/ directory - Test contact form - If everything OK, delete /themes/[your theme]/contact_form.tpl copy you made - User facing wording in add-recaptcha.txt can be modified to your liking before adding it to contact-form.tpl or in back office >> translations. - add_recaptcha.txt uses a white theme. See http://code.google.com/apis/recaptcha/docs/customization.html for other colour themes and modify to your liking within script tag var RecaptchaOptions = { theme : 'theme_name' }; . - It is possible to add more options within that scrip element. See above URL for extra options. - The style element in add_recaptcha.txt is there to center the recaptcha, so it is optional. ---- Edited to add: I could turn this into a module but I cannot think of a clean way to modify the tpl file that will survive across updates and theme changes. I could: - Backup and replace the theme tpl during module installation, but then a theme change must be hooked as well. - Insert captcha code on the fly using JavaScript (since CAPTCHA required JavaScript to work anyway) both of these seem messy solutions to me. Any ideas? Edited December 11, 2012 by giokookie (see edit history) Link to comment Share on other sites More sharing options...
Pippo3000 Posted January 9, 2013 Share Posted January 9, 2013 I don't know why it is not working with 1.4.4.1. It has been in my TODO list to turn this into a module at some point though now I am not certain how useful CAPTCHAs will be after the paper by El Ahmad, Yan and Tayara. The whole thing seems like an exercise in futulity and p****ing off legitimate users. It is not really worth spending any time on it, and as long as it requires manually modifying core files, someone will have problems with it. I will come back to it if Prestashop devs adds a hook to the contact form ( a couple of lines for them). Harass them and I will build a module for you if it the hook is added thanks for your detailed explanation how to add this to the contact form, works like a charme. just 1 more question, does the very same approach apply to the sendtofriend.tpl as well by just adding the code part to that tpl? phil Link to comment Share on other sites More sharing options...
wizard1238 Posted July 3, 2013 Share Posted July 3, 2013 Congratulations for you!! Right now I found and make the installation of Captcha Module for FREE, you can find it on www.zprofess.com They have great technical support and great service! I recommend it. Thanks all and regards, FAHR I just try the zprofess with prestashop v1.5.4.1, the contact Captcha fail to work when cache turn on, it uses js to add it on the fly the registration captcha also fail to work, it only display. Link to comment Share on other sites More sharing options...
mma87 Posted September 11, 2013 Share Posted September 11, 2013 HI to all! thanks for this best tread!! I add the captcha in the contact form, but how can I add it to the request info into product page? I add the code containded into add_recaptcha.txt in product.tpl but it doesn't work... Matteo Link to comment Share on other sites More sharing options...
Pyssou Posted December 3, 2013 Share Posted December 3, 2013 Hi all, i followed phrasespot solution, and the captcha is seen on my contact page. However, when i enter a wrong code it send the mail ! someone had the same problem ?! Thanks Link to comment Share on other sites More sharing options...
hemjesti Posted March 13, 2014 Share Posted March 13, 2014 hi guys - first - thanks for a great post - but, for me - just like eeeeeeverything else, it didn't seem to work. Things never go smoothly for me on these things. couple of questions. on the attached ContactController - where the key's go. do we keep or remove the ' around the 'put publick key here' also - on my contact form, it shows the COPY of the add_recaptcha.txt but not the typical distorted words one see's on a captcha. my form submits just fine - but i never see the captcha screen. any ideas where i dropped the ball? thanks again for a great post - i look forward to quickly resolving this issue. Link to comment Share on other sites More sharing options...
hemjesti Posted March 18, 2014 Share Posted March 18, 2014 any thoughts on this ? perhaps i'm overlooking something? Link to comment Share on other sites More sharing options...
Khundo Posted May 26, 2015 Share Posted May 26, 2015 Hi work fine for ps 1.4.0.17 thank you Link to comment Share on other sites More sharing options...
Lee Posted March 7, 2018 Share Posted March 7, 2018 This is no longer working correctly since Google have updated the recaptcha to version 2, and are discontinuing version 1 before the end of March 2018. Does anybody know how to update the code so this works with the new version 2 recaptcha? This would be good to have for older versions of Prestashop since the recent russian spam emails coming from the insecure contact form. thanks Link to comment Share on other sites More sharing options...
gtulian58 Posted March 13, 2019 Share Posted March 13, 2019 On 3/7/2018 at 12:59 PM, Lee said: This is no longer working correctly since Google have updated the recaptcha to version 2, and are discontinuing version 1 before the end of March 2018. Does anybody know how to update the code so this works with the new version 2 recaptcha? This would be good to have for older versions of Prestashop since the recent russian spam emails coming from the insecure contact form. thanks Hello, Did you find a solution? I have the same problem. Link to comment Share on other sites More sharing options...
Lee Posted June 17, 2019 Share Posted June 17, 2019 On 3/13/2019 at 12:36 PM, gtulian58 said: Hello, Did you find a solution? I have the same problem. No sorry. We eventually updated to the latest version of Prestashop. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now