reCaptcha
Version: 0.6
Author: Nick Ramsay
Created on: 2010/03/17
Last Updated: 2010/11/19
Tested on: Hotaru 1.4.2
Plugins Required: None
Plug & Play: Yes
Supported: Yes
Description
The web's most popular anti-spam captcha system. By itself, it doesn't do anything, but other plugins can utilize it.
Instructions
1. Upload the "recaptcha" folder to your plugins folder.
2. Install it from Plugin Management in Admin.
3. To use it, you'll need to register at http://recaptcha.net/, get your keys and put them in Admin -> Plugin Settings -> reCaptcha.
Notes for Plugin Developers
Including reCaptcha in your plugin is quite simple. It uses two plugin hooks:
PHP Code:
$h->pluginHook('show_recaptcha'); // this should be wrapped in a form
$result = $h->pluginHook('check_recaptcha'); // check the captcha
switch($result['ReCaptcha_check_recaptcha'])
{
case 'empty':
// show error message for an empty captcha
break;
case 'error':
// show error message for an incorrect answer
break;
case 'success':
// captcha completed correctly
break;
default:
// do nothing
}
For a working example, see /recaptcha/recaptcha_settings.php from approx. line 63.
Revision History
v.0.6 2010/11/17 - Nick - Fix for invalid argument error
v.0.5 2010/09/17 - Nick - Fix for reCaptcha echo / return issues
v.0.4 2010/09/08 - Nick - Fix for reCaptcha not being displayed
v.0.3 2010/09/08 - Nick - Fix for not loading existing settings during upgrade
v.0.2 2010/09/05 - George - Added the language, theme from the reCaptcha API.
v.0.1 2010/03/17 - Nick - Released first version
Please click "Rate Thread" and give this plugin a rating. Thank you.
Bookmarks