You can ask the users to edit that part of the hack according to their forums so filburt1's solution is good.
But if you are determined to code your hack so that it will automaticly detect this, you can get the help of the function getpermissions like:
$getperms=getpermissions($forumid,-1,-1,$forum['parentlist']);
if (!$getperms['canview'] OR !$getperms['canviewothers'])
{
//user dont have permission for this forum skip it
}
|