Skip to main content
Topic: if ( logged in ) (Read 1496 times) previous topic - next topic
0 Members and 1 Guest are viewing this 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'])
Code: [Select]
if ($user_info['is_guest'])
will do the trick.