PDA

View Full Version : How do I check if user is logged in inside a template


redraider
08-28-2008, 01:08 PM
If I want to check if a user is logged in or not in a particular template, how can I achieve this?

I need to check if they are logged in, if not, forward them to login or register page.

Please guide.

(I am making a custom template)

Lynne
08-28-2008, 02:36 PM
In your template, use this conditional:

<if condition="$show['guest']">
Stuff to only show unregistered users
</if>

redraider
08-28-2008, 04:34 PM
Thanks !! :)