2012-02-02, 04:49 AM
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:
Edit: you can find a GID in phpMyAdmin.
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.