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...]


How to prevent spammer in forum kunena?



Many joomla programmers use forum kunena. After a time, there are many articles are posted automatically by spammers. There is some way to stop it.

you can use component: Spam killer for kunena. But many people say it doesn't work. So it is not a good way.

After a time thinking, I find that these spammer relate to com_users to register user automatic, posting article automatic by some code inside forum kunena. If we stop spammer registration, we can stop these annoyed things.How can we do this? JWUSER is a good solutions.

1. Fist, download jwuser. Choose the suitable version for yourjoomla 1.5 ,Joomla 1.6 ,Joomla 1.7 website.

2. Then, config your website at global configuration: not allow register for new user.

3. Set the registration page of your website to registration page of jwuser.

Everything run as before, you also have more option from jwuser. No spammer can post article in kunena forum.

[Read More...]


How to detect template is on frontpage in joomla?



Many programmers want to put a script in joomla template that only run at home page. I recommend here two solution that i get from digital point forum:

1. Solution 1

you can simply put a module position and make it only display on frontpage. When this module display, it means we are on front page. Put a code of javascript here. For example: you have a funtion myonload() {...}; put in the area of this module. Hope that help you!

2. Solution 2

Put this code between tag of template:

 getActive() == $menu->getDefault()) { ?>  


[Read More...]


How to auto insert link to keyword and description to image in joomla?



There is hundreds of article in one website. Each article, we always want to have some link refer to our website. It takes a lot of time to do it manually. In joomla, there is a plugin name jwseolink can help you solve this problem.

jwseolink search for keywords automatically, then replace them with the tag a, then insert link that you want to put at every keyword.

In jwseolink versionJoomla 1.7, it also search for images, then insert the attribute alt, and title with value is the article title if author did not used it.

You can download and read more tutorial at: http://www.jw-extensions.net/jwextensions/item/Plugin-jwseolink-joomla-1-7.html?id=3473

[Read More...]


How to display menu of component in creating menu in joomla 1.6, joomla 1.7?



There a bit different in joomla 1.5 and later version joomla 1.6, joomla.17. In joomla 1.5, in view folder, we have view.html.php, metadata.xml, folder tmpl with default.php inside. But in joomla 1.6, joomla 1.7, it is: view.html.php, folder tmpl with default.php and default.xml. This file default.xml is like metadata.xml. A simple default.xml is like this:








Now, turn back to your admin site. Check again, it has been displayed.
[Read More...]


How to disable component on front page?




In most template, the component always display at one position. If there nothing to display, it still stand there, that make our page seem ugly. There is an easy way to handle this problem for five step.

Step1: Create a new module position. For example we create module position intro:

countModules('intro')) : ?>








Step2: Change the code display component to like this:
countModules('intro')) : ?>








Step3: Create a module (blank custom html module) at intro position, set it display only at home
Every thing 's done. Your frontpage will not display component.
Thinking like this way, we can modify where and when the component display in our website. It is not stay at the same position from page to page.

[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