How to add captcha in registration of joomla 1.5?



The previous article has mentioned about recaptcha. This article we will show the detail how to add recaptcha to register page.


First read this article to download recaptcha plugin and config it.


Then go to folder components/com_users/controller.php line 61 and place this:


global $mainframe;
$mainframe->triggerEvent('onCaptchaConfirm');


Finally, go to template file in components/com_user/views/register/tmpl/default.php or in folder template/template_name/html/com_user/register/default.php and insert this:


<?php global $mainframe;
$mainframe->triggerEvent('onCaptchaDisplay'); ?>


at where you want.


This can help you stop spammer from register automatically and spam you forum.


Hope this is helpful.

[Read More...]


An easy way insert captcha in any module or component of joomla?



A popular way to stop spammer from spamming is using captcha. But writing an own captcha will take a lot of time. There is one simple way to solve this problem is using Joomla reCAPTCHA Integrator Plugin. It uses an external captcha from recaptcha.net now belong to google http://www.google.com/recaptcha.



How to use it:


1. Download it from: http://www.joomlaez.com/


2. login to http://www.google.com/recaptcha to get reCAPTCHA Public Key and reCAPTCHA Private Key. Or you can use mine:


ex: public key: 6Lf6AssSAAAAAEvaWJr-DvFPAj5pXLQeZaeP_zTX private key: 6Lf6AssSAAAAAJLFx2HpG86yCwEoskIpW3ZQ7Znk


3. Install , enable and enter public and private key


4. In HTMLmodule insert {captcha} where you need to display captcha


5. In general please insert

{code}

global $mainframe;
$mainframe->triggerEvent('onCaptchaDisplay'); {/code} to display captcha.


6. 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:
{code}
global $mainframe;
$mainframe->triggerEvent('onCaptchaConfirm'); {/code}


[Read More...]


 

Link Liên kết

Thông tin liên hệ

YH: huonggiangdhtn
Skype: tthuonggiang
Return to top of page Copyright © 2010 | joomla extensions jw-extension.net