utw-Mephisto
07-03-2006, 10:00 PM
All credits going to Zero Tolerance (https://vborg.vbsupport.ru/member.php?u=48782) for releasing vBShout 2.0 (https://vborg.vbsupport.ru/showthread.php?t=93097) and Abe1 (https://vborg.vbsupport.ru/member.php?u=49809) for the instructions to use vBShout on all pages (https://vborg.vbsupport.ru/showthread.php?t=96158&page=12).
Here once again the full instructions:
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 (in_array($forumid, array(169,170)))
{
$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")
Change
if (in_array($forumid, array(169,170)))
to the forum ids in which you would like to show the shoutbox ...
Since vbshout has been changed several times, I have attached also the vbshout.php and the product (already modified).
It does work on both my forum with 3.54 and 3.6.0 Beta 3 (works only below navbar)
Here once again the full instructions:
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 (in_array($forumid, array(169,170)))
{
$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")
Change
if (in_array($forumid, array(169,170)))
to the forum ids in which you would like to show the shoutbox ...
Since vbshout has been changed several times, I have attached also the vbshout.php and the product (already modified).
It does work on both my forum with 3.54 and 3.6.0 Beta 3 (works only below navbar)