A simple add-on to let add the Google reCAPTCHA V2 and accept terms to any form in Phoenix 18.104.22.168 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
Just open it in your editor and add the comment and keys into it
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');
You can also define which pages it is shown on by editing the hook file.
$good_pages = ['contact_us.php', 'create_account.php'];
This is done in both the capatcha hook file JcMgoogleCapatcha.php
and the accept terms file JcMaTerms.php
That’s it it should just work. When you go to your contact_us page you should see
the Google reCAPTCHA and if installed the accept terms.
This will only work on Phoenix.