We have a big problem with spam and fake accounts on Phoenix sites, so what can we do? Well found some time to hook Google reCAPTCHA V2 for Phoenix 1.0.3.0 so everyone can make use of it.
I have installed and tested on Phoenix 1.0.3.0 but as this is critical to comunincation with your customers I'm not going to post in the app's untill it's been tested by a few others. So here we go.
JcM Google reCAPTCHA V2 Phoenix V1.0
A simple add-on to let add the Google reCAPTCHA V2 to any form in Phoenix 1.0.3.0 that has the hooks added to it.
It is a no core change add-on and uses site-wide hooks. Simply copy all the files over. You will need your Google reCAPTCHA so you can add them to the following file
includes/languages/english/google_recaptcha.php
Just open it in your editor and add the comment and keys into it
//google
define('MODULE_CONTENT_RECAPTCHA_ERROR','Sorry you need to prove you are human first please complete the google captcha');
define('MODULE_CONTENT_RECAPTCHA_SITEKEY','Place your site key here');
define('MODULE_CONTENT_RECAPTCHA_SECRETKEY','Place your Secret key here');
That’s it it should just work. When you go to your contact_us page you should see the Google reCAPTCHA
Enjoy.
Can be see working on this site
Thank's to @Gyakutsuki for helping to debug this.
JcM Google reCAPTCHA V2 Phoenix V1.0.zip