hehe, nevermind boofo!

just saw your edit on your original post where ya adding the usergroups line, right above the evals template line, and it works just fine now! thanks again m8.
PHP Code:
// make sure not to have redundancy in the view list, so get who's viewed it
// first (and do nothing for invisible users)
$thisthread = $DB_site->query_first("SELECT useridviews FROM thread
WHERE threadid = $threadid");
$useridviews = explode(" ", $thisthread['useridviews']);
//if (!$bbuserinfo['invisible'])
//{
if (!empty($thisthread['useridviews']))
{
if (!in_array($bbuserinfo['userid'], $useridviews))
{
$DB_site->query("
UPDATE thread
SET useridviews = CONCAT(useridviews, \" \", \"" .
$bbuserinfo['userid'] . "\")
WHERE threadid = $threadid");
}
}
else
{
$DB_site->query("UPDATE thread
SET useridviews = \"" . $bbuserinfo['userid'] . "\"
WHERE threadid = $threadid");
}
//}
// now...who's viewed this thread? (will include $bbuserinfo if he's not invis)
if (empty($thisthread['useridviews']))
{
$thread['viewers'] = "nobody";
}
else
{
$result = $DB_site->query("SELECT userid, username FROM user
WHERE userid IN (" . implode(", ", $useridviews) . ")");
$viewers = array();
while ($user = $DB_site->fetch_array($result))
{
array_push($viewers, "<a target=\"_blank\" href=\"member.php?s=" .
$session['sessionhash'] . "&action=getinfo&userid=" .
$user['userid'] . "\">" . htmlspecialchars($user['username']) .
"</a>");
}
$thread['viewers'] = implode(", ", $viewers);
if ($bbuserinfo[usergroupid]==6) {
eval("\$totalviewers = \"".gettemplate('showthread_totalviewers')."\";");
}
}
Metro.