Showing posts with label User Registration. Show all posts
Showing posts with label User Registration. Show all posts

Monday, February 09, 2009

Simple Joomla! Hack to hide links from registered users.

Last week when I was doing some changes to one of my websites, I came across a requirement to display "Login and Registration" link only for guest users, once the members logged in to their member area, it should be a "Logout" link.

Unfortunately Joomla! Core doesn’t support that feature, which I think most of you might also need badly. But it was a very simple hack, and will be useful for Joomla! devs who are looking for the same functionality. Here I'm posting a small PHP code which does the Job.

if (!($my->id)) {
echo "
Welcome! Sign in Or Register.
"; }else{ echo "
Welcome! ".$my->name."| Logout.
"; }

Friday, January 09, 2009

Auser Manager to work as in it's Demo!

To make Auser manager, which is a Joomla! component, to work same as in it's demo you might need some reading on the web other than downloading Auser component from www.alikonweb.it . This is because Auser Manager itself uses some plug-ins like SecureForm which gives the CAPTCHA facility, a visual verification of an image. So you need to install SecureForm Plug-in and enable it.

Not only that, in the demo you can see some Ajax base field validations, which you won’t get with Auser manager installation. available at the moment (Moment of this article is getting published). What is in the demo is a beta version under development and testing. So the version with Ajax messages is not available for download at the moment.
But there is a workaround. To have all those ajax messages you need some more work to do. Get FormCheck by MooTools which is a set of Java script libraries. This allows you to add ajax messages to any form fields in your web site. With some code editing of Auser manager you’ll be able to get the functionality as is in Auser manager demo.
Good Luck!