On my 3.8 forum, I have a couple of forums I have closed off to unregistered users (spiders basically), but I did want my users to be able to have access to the rss feed. So, I modified these lines which look the same in 4.x. You can try it and see.
Find:
PHP Code:
foreach ($forumids AS $forumid)
{
$forumid = intval($forumid);
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"];
if (isset($vbulletin->forumcache["$forumid"])
AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canview'])
AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers'])
AND (($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR in_array($vbulletin->GPC['type'], array('JS', 'XML'))) // JS/XML only shows titles
AND verify_forum_password($forumid, $vbulletin->forumcache["$forumid"]['password'], false)
)
{
$forumchoice[] = $forumid;
}
}
Change to:
PHP Code:
foreach ($forumids AS $forumid)
{
$forumid = intval($forumid);
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"];
if ($forumid != 'x') {
if (isset($vbulletin->forumcache["$forumid"])
AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canview'])
AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers'])
AND (($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR in_array($vbulletin->GPC['type'], array('JS', 'XML'))) // JS/XML only shows titles
AND verify_forum_password($forumid, $vbulletin->forumcache["$forumid"]['password'], false)
)
{
$forumchoice[] = $forumid;
}
}
if ($forumid == 'x')
{
if (isset($vbulletin->forumcache["$forumid"]))
{
$forumchoice[] = $forumid;
}
}
}
Change X to your forumid (in a couple of places). Try it and see if it's what you want. Remember that this will NOT check permissions for users in those forums, so anything that is posted is now viewable.