Can smarty tell if a user is logged in?
-
vastneonwolf
- Regular
- Posts: 43
- Joined: Sun May 22, 2005 6:57 am
- Contact:
Can smarty tell if a user is logged in?
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?
Everybody's children are so special. It makes you wonder where all the ordinary grown-ups come from.
-
jhermanns
- Site Admin
- Posts: 378
- Joined: Tue Apr 01, 2003 11:28 pm
- Location: Berlin, Germany
- Contact:
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
Or wait for the knowita^h^h^h^h Garvin to show up
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
{$is_logged_in} is the variable you'll want to use.
Regards,
Garvin
{$is_logged_in} is the variable you'll want to use.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
vastneonwolf
- Regular
- Posts: 43
- Joined: Sun May 22, 2005 6:57 am
- Contact: