Boby
02-12-2008, 10:53 PM
Mod Title: reCaptcha - the cool image validation
Last Updated: 12.02.2008
Supported by Mod Developer: No
Where to Download: This Thread
Support Via This Thread or Download Site: This Thread
Compatible With: phpLD v2 & v3
Most of you have probably seen or at least heard of reCaptcha (http://recaptcha.net/). It is a new captcha (image verification) system that is easy for humans to read and nearly impossible for robots. How the system works...here (http://recaptcha.net/learnmore.html).
I have thought of this mod only as replacement for phpLD's image verification system on servers where the GD library is not bundled with PHP, and users cannot have this important feature.
Installation Instructions
Register (https://admin.recaptcha.net/accounts/signup/) for a free reCaptcha account and get yourself the private and public keys for your domain.
Either edit "init.php" and add the folowing:
Content visible to registered users only.or you can add new entries to your PLD_CONFIG database table with the IDs:
RECAPTCHA_PUBLIC_KEY and RECAPTCHA_PRIVATE_KEY having as values your keys.
Download (http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest) the reCAPTCHA Library, extract "recaptchalib.php" in a new folder called "recaptcha", inside your "/libs/" folder. The full path should be
Content visible to registered users only.
Create a new file called "function.recaptcha.php" inside your "/libs/smarty/plugins/" folder with the following code inside:
Content visible to registered users only.
Edit "submit.tpl", can be found on phpLD v3 inside your "/templates/{YOUR-TEMPLATE}/" or in older version simply inside "/templates/".
Look for something simmilar to the following code, it might be a little bit different from version to version or template to template:
Content visible to registered users only.Replace it with the following code (you may use here your own HTML markup to fit your template, this is just an example to the default template):
Content visible to registered users only.
Edit "submit.php", from the root of your phpLD installation.
Look for (right on top of the file):
Content visible to registered users only.Right after add:
Content visible to registered users only.
Look for the following code and remove it (might be a little different depending on your phpLD version, but you should be able to handle it):
Content visible to registered users only.Note: We will now split the instructions for phpLD v3 and phpLD v2 users.
Instructions for phpLD v3:
For all phpLD versions starting from v3.1.0 (and above), look for the following code and remove it (on top of the file):
Content visible to registered users only.
Look for the following:
Content visible to registered users only.Right above add:
Content visible to registered users only.Instructions for phpLD v2:
This is also aplicable for the very first phpLD v3 releases.
Look for:
Content visible to registered users only.Replace with:
Content visible to registered users only.
That's all :)
I have also attached a screenshot of the reCaptcha working on phpLD 3.3.0
Hope you like it!
Boby
say thank you? (http://www.frozenminds.com/donate.html)
Last Updated: 12.02.2008
Supported by Mod Developer: No
Where to Download: This Thread
Support Via This Thread or Download Site: This Thread
Compatible With: phpLD v2 & v3
Most of you have probably seen or at least heard of reCaptcha (http://recaptcha.net/). It is a new captcha (image verification) system that is easy for humans to read and nearly impossible for robots. How the system works...here (http://recaptcha.net/learnmore.html).
I have thought of this mod only as replacement for phpLD's image verification system on servers where the GD library is not bundled with PHP, and users cannot have this important feature.
Installation Instructions
Register (https://admin.recaptcha.net/accounts/signup/) for a free reCaptcha account and get yourself the private and public keys for your domain.
Either edit "init.php" and add the folowing:
Content visible to registered users only.or you can add new entries to your PLD_CONFIG database table with the IDs:
RECAPTCHA_PUBLIC_KEY and RECAPTCHA_PRIVATE_KEY having as values your keys.
Download (http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest) the reCAPTCHA Library, extract "recaptchalib.php" in a new folder called "recaptcha", inside your "/libs/" folder. The full path should be
Content visible to registered users only.
Create a new file called "function.recaptcha.php" inside your "/libs/smarty/plugins/" folder with the following code inside:
Content visible to registered users only.
Edit "submit.tpl", can be found on phpLD v3 inside your "/templates/{YOUR-TEMPLATE}/" or in older version simply inside "/templates/".
Look for something simmilar to the following code, it might be a little bit different from version to version or template to template:
Content visible to registered users only.Replace it with the following code (you may use here your own HTML markup to fit your template, this is just an example to the default template):
Content visible to registered users only.
Edit "submit.php", from the root of your phpLD installation.
Look for (right on top of the file):
Content visible to registered users only.Right after add:
Content visible to registered users only.
Look for the following code and remove it (might be a little different depending on your phpLD version, but you should be able to handle it):
Content visible to registered users only.Note: We will now split the instructions for phpLD v3 and phpLD v2 users.
Instructions for phpLD v3:
For all phpLD versions starting from v3.1.0 (and above), look for the following code and remove it (on top of the file):
Content visible to registered users only.
Look for the following:
Content visible to registered users only.Right above add:
Content visible to registered users only.Instructions for phpLD v2:
This is also aplicable for the very first phpLD v3 releases.
Look for:
Content visible to registered users only.Replace with:
Content visible to registered users only.
That's all :)
I have also attached a screenshot of the reCaptcha working on phpLD 3.3.0
Hope you like it!
Boby
say thank you? (http://www.frozenminds.com/donate.html)