2007-02-07, 06:52 PM
2007-02-07, 07:53 PM
Open showteam.php
Find Following:
Replace With Following:
Find Following:
After Add Following:
In Show Forum Team Templates -> showteam_usergroup_user
After " {$user['username']}</strong></a> " Add Following:
Screenshot in Attachment..
Regards..
Find Following:
$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, displaygroup, usergroup, ignorelist, hideemail, receivepms", "displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username'));
Replace With Following:
$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, 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'));
Find Following:
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
After Add Following:
// Determine the status to show for the user (Online/Offline/Away)
$timecut = time() - $mybb->settings['wolcutoff'];
if($user['lastactive'] > $timecut && ($user['invisible'] != "yes" || $mybb->usergroup['canviewwolinvis'] == "yes") && $user['lastvisit'] != $user['lastactive'])
{
eval("\$user['onlinestatus'] = \"".$templates->get("postbit_online")."\";");
}
else
{
if($user['away'] == "yes" && $mybb->settings['allowaway'] != "no")
{
eval("\$user['onlinestatus'] = \"".$templates->get("postbit_away")."\";");
}
else
{
eval("\$user['onlinestatus'] = \"".$templates->get("postbit_offline")."\";");
}
}
In Show Forum Team Templates -> showteam_usergroup_user
After " {$user['username']}</strong></a> " Add Following:
{$user['onlinestatus']}
Screenshot in Attachment..
Regards..
2007-02-07, 08:27 PM
It works.
Thank you very very much.
Thank you very very much.
2007-02-07, 08:32 PM
No Problem..
2007-02-07, 11:53 PM
How can we do the same thing for Memberlist page?
2007-02-08, 12:00 AM
im going to sleep now i ll do your request tomorrow..