Chris M
07-14-2005, 08:27 PM
This is driving me mad :p
It will not set the $limitfids variable, and I cannot for the life of me figure out why :(
// #################### 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);
Satan
It will not set the $limitfids variable, and I cannot for the life of me figure out why :(
// #################### 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);
Satan