// #################### PROCESS LATEST THREADS ####################### // fetch the permissions for each forum global $vbulletin; $forumperms = array(); foreach($vbulletin->forumcache AS $forum) { $forumperms[$forum["forumid"]] = fetch_permissions($forum['forumid']); // ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ## if ((!$forumperms[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) { $limitfids .= ','.$forum['forumid']; } } unset($forum);