Shawn
12-06-2006, 09:51 PM
Works for vBShout version 2.0
1) Install vBShout
2) Edit plugin "vBShout [Template Alteration]" and make the following changes:
a) Change the Hook Location to "global_start"
b) Find and delete:
function isBanned($user)
{
return (isBanned_Check($user['userid'], 'shout_banned_users') || isBanned_Check($user['usergroupid'], 'shout_banned_usergroups'));
}
function isBanned_Check($bash, $against)
{
global $vbulletin;
return in_array($bash, iif($vbulletin->options[$against], explode(',', $vbulletin->options[$against]), array()));
}
c) Find:
$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);
and replace with:
if ($forumid ==169)
{
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace('$navbar', '$navbar' . ' $Shoutbox', $vbulletin->templatecache['FORUMDISPLAY']);
}
3) Edit plugin "vBShout [Template Cache]" and make the following changes:
Find:
if (THIS_SCRIPT == "index")
Replace with:
if (VB_AREA == "Forum")
1) Install vBShout
2) Edit plugin "vBShout [Template Alteration]" and make the following changes:
a) Change the Hook Location to "global_start"
b) Find and delete:
function isBanned($user)
{
return (isBanned_Check($user['userid'], 'shout_banned_users') || isBanned_Check($user['usergroupid'], 'shout_banned_usergroups'));
}
function isBanned_Check($bash, $against)
{
global $vbulletin;
return in_array($bash, iif($vbulletin->options[$against], explode(',', $vbulletin->options[$against]), array()));
}
c) Find:
$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);
and replace with:
if ($forumid ==169)
{
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace('$navbar', '$navbar' . ' $Shoutbox', $vbulletin->templatecache['FORUMDISPLAY']);
}
3) Edit plugin "vBShout [Template Cache]" and make the following changes:
Find:
if (THIS_SCRIPT == "index")
Replace with:
if (VB_AREA == "Forum")