MyBB Support

[TROPICAL] Support Thread

Submitted by Tropical, , Thread ID: 5022

Thread Closed

RE: [TROPICAL] Support Thread

OP
#7
24-06-2015, 08:23 PM
Akay Wrote:
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";


Oh,
well you know more PHP than me :noh: :noh: :noh:

Users browsing this thread: 5 Guest(s)