MyBB Support

[TROPICAL] Support Thread

Submitted by Tropical, , Thread ID: 5022

Thread Closed

RE: [TROPICAL] Support Thread

#6
linkzy

PHP Code:
$query $db->simple_select("users""uid, username, avatar, usertitle as customtitle, displaygroup, usergroup, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away""displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username')); 

Just then need to fetch it, and then you can do

PHP Code:
if($user['lastactive'] > $timecut && ($user['invisible'] == || $mybb->usergroup['canviewwolinvis'] == 1) && $user['lastvisit'] != $user['lastactive'])
{
$status "online";
}
elseif(
$user['away'] == && $mybb->settings['allowaway'] != 0)
{
$status "away";
}
else
{
$status "offline";


Users browsing this thread: 4 Guest(s)