Page 1 of 1

Can smarty tell if a user is logged in?

Posted: Tue Jun 20, 2006 4:17 am
by vastneonwolf
I have a login link in a hard codded nav bar and I want to know if I can write a short smarty {if} statement to sho a log out link if a user is logged in?

Posted: Tue Jun 20, 2006 10:14 am
by jhermanns
The only thing I could dig up quickly is {if $entry.is_entry_owner} ... {/if} which you can only use while iterating through the entries though. If you have more time than I have, just take a look around in the existing tpl files, I think you will find something... :-)

Or wait for the knowita^h^h^h^h Garvin to show up :-)

Posted: Tue Jun 20, 2006 11:58 am
by garvinhicking
Hi!

{$is_logged_in} is the variable you'll want to use. :)

Regards,
Garvin

Posted: Tue Jun 20, 2006 11:48 pm
by vastneonwolf
Thanks Garvin