By saravanan82 on
Hi,
I just want to know which variable i can use in "page.tpl.php" file for checking whether the user has logged in or not.
if(user_loggedin)
{
some links
}
else
{
some other links
}
I want to know which variable should be there in place of "user_loggedin". Could anyone please help me out on this ?
Thanks in Advance !! :)
Comments
$user->uid
You can use $user->uid > 0, provided you have declared global $user;
HTH
Terry
Recent Drupal sites:-
www.allegiantair.com www.defaqto.com www.quarkexpeditions.com www.sportrelief.com www.chevronhackles.com
www.philipturnercrafts.co.uk www.intelflexplus.com www.aprilroseturner.com www.businessclubagent.ihg.com www.businessclub.ihg
just an example <?phpglobal
just an example
--
Cheers,
Sivanandhan, P. (a.k.a. apsivam)