For a full category to be hidden all the forum posts need to be guest read = no but you will still see the forum category name... so find
if ($forums_arr['fcid'] != $fcid) {// add forum cat headers
print("<tr class='f-cat f-border'><td colspan='5' align='center' class='f-border'>".htmlspecialchars($forums_arr['fcname'])."</td></tr>\n");
$fcid = $forums_arr['fcid'];
}
if (get_user_class() < $forums_arr["minclassread"] && $forums_arr["guest_read"] == "no")
continue;
Change to
if (get_user_class() < $forums_arr["minclassread"] && $forums_arr["guest_read"] == "no")
continue;
if ($forums_arr['fcid'] != $fcid) {// add forum cat headers
print("<tr class='f-cat f-border'><td colspan='5' align='center' class='f-border'>".htmlspecialchars($forums_arr['fcname'])."</td></tr>\n");
$fcid = $forums_arr['fcid'];
}
I hope this is what you meant.