For those of you who know, Google has released a new version of the reCaptcha that doesn’t have a Captcha: noCaptcha reCaptcha. Some more information can be found at http://www.google.co…ntro/index.html.
Now, I’ve figured out (kind of) on how to implement it (very easy change), so I’m hoping it’s backwards compatible. If anyone is willing to give it a try, please try my code snippet. My development copy of phpVMS isn’t working as I want it to due to the skin, and I’m too lazy to go into the admin panel to change the skin to crystal.
recaptchalib.php is attached, to install, go to (phpVMS isntall directory)\core\lib\recaptcha. Make sure to backup your old one! I’m not being held liable here. You were warned.
Thank you for anyone who tries, let me know how it goes.
Removing allows me to see the registration page, but adding it back makes it dead (PHP kills the process), so I end up with a blank page.
Is it okay to take out, or should I got to 5.5? I tried going up, but looks like everything is changed so much that I can’t quite do it without screwing up my current skin in progress.
Just letting you know, testing it with whatever version I used for my phpVMS fixed version I have in a different thread, it works extremely well! Great work!
Where do I actually add the two keys that we get from Google’s recaptcha in PHPVMS 5.5 ?
Just copy the lines from the app.config.php file and place them in your local.config.php file then update your keys.
/* Keys for recaptcha, you can change these if you want to your own but it's a global key so it should just work */
Config::Set('RECAPTCHA_PUBLIC_KEY', '6LcklAsAAAAAAJqmghmMPOACeJrAxW3sJulSboxx');
Config::Set('RECAPTCHA_PRIVATE_KEY', '6LcklAsAAAAAAMeQy5ZBoDu8JOMTP-UL7ek1GedO');
Does it matter if we have the pages in the skins folder itself (/lib/skins/) or does it have to be in the /core/pages/ for it work ? I have tried with my pages on the skin folder and it doesn’t seem to work.
I updated my extended version registration and contact forms to this today. You can take a look at how it is done here -> https://github.com/D…45be818e948d96c
David,
I copied the files from your github and saved them in phpvms but now I have broken things. I suspect I did not copy things across properly. Is there a way I can download the amended files as a zip or something so I don’t stuff up the copy and paste.
It’s probably because of the big jump of versions; so much has been change (including template files are nonexistent) that I suggest you make a fresh install and then copy and paste code snippets back into phpVMS.
Thanks AirbusAi342, my install is fresh. Apart from the skin this is the first thing I’ve tried doing.
I am pretty sure I have either missed out a ; or ?>, something like that but the files are in all sorts of colours and I can’t quite tell if I’ve copied it all perfectly. I was just hoping David might be able, or someone, whizz me there files so I know they are correct.
Ok so I worked out partly what I did wrong. I copied the code direct from the view window which copied a load of additional characters. Having cleared those out the code still shows me a number of errors which I don;t know how to fix. Is there another way round this captcha issue because at the moment no pilots can register and I need to sort it.
What files were you editing, just re upload them and start again.
Correct, you can always start new by backing up your skin folder and local.config.php file. Any editied file should be placed in your skin folder if possible.
@t_bergman - next time post sooner!!! You’d have saved me sooooo much wasted time! Just kiddin. Your response in one of my other posts was a great help. Fortunately I had backed up all the files I had changed so I just deleted the modified files and restored the old ones. Then I got myself a new captcha key from Google, entered it into the local.config.php and it’s all working perfectly.