Quote:
Originally Posted by KirbyDE
Not quite
PHP Code:
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']) . ',8';
|
actually i changed that code and it doesnt work, users can still see forumid8 ???
here is what it looks like to be sure
PHP Code:
// Rebuild Bitfields
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);
build_forum_permissions();]]></uninstallcode>
</code>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1">
<title><![CDATA[Opt-Out Forums from "Get New Posts"]]></title>
<hookname>search_getnew_start</hookname>
<phpcode><![CDATA[if ($vbulletin->userinfo['excludeforumsgnp'])
{
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']) . ',8';
}]]></phpcode>
</plugin>
<plugin active="1">
<title><![CDATA[Opt-Out Forums from "Get New Posts"]]></title>
<hookname>profile_editoptions_start</hookname>
<phpcode><![CDATA[function fetch_optout_forumids_array($parentid = -1, $depthmark = '')
{