- Get a site and server key: https://www.google.com/recaptcha/admin
- Download the Google Recaptcha library: https://github.com/google/recaptcha/archive/1.1.3.zip
- Copy the contents of
src/
directory intocore/lib/recaptcha
(so delete everything in that folder, and replace it). It should look like this:
core/lib/recaptcha/
ReCaptcha
autoload.php
-
Make the changes shown in these two links:
https://github.com/nabeelio/phpvms_v2/pull/138/commits/b8d46bbf25195de9d454cb0ca9ed9175631d752a https://github.com/nabeelio/phpvms_v2/commit/88656de961463b46ce742c77455c67c5c06fdfac
Red being lines to remove, and green being what to replace them with.
-
Add to the bottom of your
local.config.php
file, and read the instructions in the comments, putting the keys in the right places
# Add to the end of local.config.php
# You need to get the keys from here: https://www.google.com/recaptcha/admin
# Put the "Site Key" in RECAPTCHA_PUBLIC_KEY
# Put the "Secret Key" in RECAPTCHA_PRIVATE_KEY
Config::Set('RECAPTCHA_PUBLIC_KEY', '');
Config::Set('RECAPTCHA_PRIVATE_KEY', '');