I have created a custom module for my contactus form. Now I want to use Joomla recaptcha plugin with this module.
Any idea how to get this done?
Got this from: http://jw-extension.net/joomla-how-to/138-an-easy-way-insert-captcha-in-any-module-or-component-of-joomla.html
Download it
login to http://www.google.com/recaptcha to get reCAPTCHA Public Key and reCAPTCHA Private Key
Install , enable and enter public and private key
In HTMLmodule insert {captcha} where you need to display captcha
In general please insert
global $mainframe;
$mainframe->triggerEvent('onCaptchaDisplay');
to display captcha.
If Auto-verify with reCAPTCHA option is enabled, the plugin will check if captcha verification data exists then automatically connect to reCAPTCHA and ask for confirmation. This method requires a little more system resource on every page load but really useful if you have many pages need captcha verification. If you don't want to enable captcha verification globally but for just few pages then you might want to disable Auto-verify with reCAPTCHA option. To verify user response, insert the following PHP code to the controller file of individual Joomla! extension where captcha verification needed:
global $mainframe;
$mainframe->triggerEvent('onCaptchaConfirm');