How can I check if someone is logged in or not?
http://<yourforumroot>/online.php
And you should see them in your Board Statistics on your Index Page.
That's "Who's online"
I'm searching a PHP Code to check it.
if($mybb->user['uid'])
{
// user is logged in
}
else
{
// user is not logged in
}
You didn't give any circumstances etc, so I can't really give any more information, or be more specific.