Skip to main content
if ( logged in ) Started by Wizard · · Read 3396 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

if ( logged in )

@anagnam  was talking about some indication to guests about logging to post. I wonder a popup modal would serve the purpose. Will an if function work ? How to check if someone is logged in or not ?

Re: if ( logged in )

Reply #1

Depending were you are:
Code: [Select]
if ($context['user']['is_guest'])
or
Code: [Select]
if ($user_info['is_guest'])
will do the trick.
Bugs creator.
Features destroyer.
Template killer.