MyBB Community Forums

Full Version: Show Useragents on Online.php page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
It is because if their group ID is not 4, it will not run the code.
However, it does show the Useragent: part... My guess is that you would need to change the code to:
if ($mybb->user['usergroup'] == "4" || $mybb->user['usergroup'] == "someGIDhere")
{
$query = $db->simple_select("sessions", "useragent", "uid='{$user['uid']}'");
$useragent = $db->fetch_field($query, "useragent");
$user['useragents'] = '<span style="float: right; font-size: 9px;">Useragent: '.$user['useragent'].'</span>';
} 

Edit: you can find a GID in phpMyAdmin.
Pages: 1 2 3