Quote:
Originally Posted by RWerksman
I opted for appending this to the end:
Code:
if ($vbulletin->userinfo['excludeforumsgnp'])
{
$vbulletin->GPC['exclude'] = $vbulletin->userinfo['excludeforumsgnp'] . ',71,53';
}
ELSE
{
$vbulletin->GPC['exclude'] = "71,53";
}
That automatically opts out of 71,53 for everyone.
|
so my plugin should look like this if I want to block forum #137?
Code:
if ($vbulletin->userinfo['excludeforumsgnp'])
{
$vbulletin->GPC['exclude'] .= ((!$vbulletin->GPC['exclude']) ? $vbulletin->userinfo['excludeforumsgnp'] : ',' . $vbulletin->userinfo['excludeforumsgnp']);
}
if ($vbulletin->userinfo['excludeforumsgnp'])
{
$vbulletin->GPC['exclude'] = $vbulletin->userinfo['excludeforumsgnp'] . ',137';
}
ELSE
{
$vbulletin->GPC['exclude'] = "137";
}