Untested, but you'll most likely have to modify the following part of the code:
PHP Code:
$xforum_ids = array_keys($vbulletin->forumcache);
foreach ($xforum_ids AS $key => $xforum_id)
{
$xfperms = & $vbulletin->userinfo['forumpermissions']["$xforum_id"];
if (!($xfperms & $vbulletin->bf_ugp_forumpermissions['canview']))
{
unset($xforum_ids["$key"]);
}
}
if (empty($xforum_ids))
{
$xforum_list = "0";
}
else
{
$xforum_list = implode(', ', $xforum_ids);
}
Since that's the part which defines the $xforum_list var that controls the query which counts the unread posts.