MyBB Community Forums

Full Version: check if person is guest
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone tell me how to determine if the user is a guest and if so display a message?

I have tried but didn't work
if ($mybbuser['usergroup'] == "1") {
        die('You must be logged in');
       }

if($mybbuser['uid'] == "0")
{
  die('You must be logged in');
}
Thanks k776