MyBB Community Forums

Full Version: decide user is guest who is visiting our site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There are many plugins although but I want to implement my own login system . I Know how to show login forum . All I want to know , how to decide that this (guest) IP is not logged in ?

Well if you are including "global.php" you could do
if ($mybb->user['uid']>=1)
{
/* Code to execute if user is logged in. */
}
else
{
/* Code to execute if user is not logged in. */
}
Thanks solved