https://www.icyphoenix.com/viewtopic.php?f=35&t=8875&p=57943#p57943
-----------------------------------
mort
Sat 05 Jan, 2013 12:09

Re: How Do I Check If A User Is Logged In ?
-----------------------------------
Then I suspect that you haven't got the menu -> link permission-protected for users and it thinks everyone is a guest?
if (! = if(not

You need something like this.

[code linenumbers=false]if (!$user->data['session_logged_in']) {do this}else{do something else - or do - /* nothing */};[/code]

To be honest, I haven't had much of a look at IP2 - So some of this is patchy.  :P


