PDA

View Full Version : Add-On Releases - vbshout 2.0 in specified forums only


utw-Mephisto
04 Jul 2006, 06:12
All credits going to Zero Tolerance (http://www.vbulletin.org/forum/member.php?u=48782) for releasing vBShout 2.0 (http://www.vbulletin.org/forum/showthread.php?t=93097) and Abe1 (http://www.vbulletin.org/forum/member.php?u=49809) for the instructions to use vBShout on all pages (http://www.vbulletin.org/forum/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)

Snake
04 Jul 2006, 18:57
Thank you!

mof9336
06 Jul 2006, 00:52
Thank you!
yes thakyou-how do i get it to show everywere even if peeps are making a post

utw-Mephisto
06 Jul 2006, 00:58
Everywhere ?

As I said in the description .. its based on the addon "show on ALL pages" which can be found here :

http://www.vbulletin.org/forum/showthread.php?t=96158&page=12

iran.gs
08 Aug 2006, 01:44
where do l put this at ???

Change



if (in_array($forumid, array(169,170)))

iran.gs
08 Aug 2006, 01:54
i did everything to the book but is not even showing in the forum :()

tazB.ca
05 Sep 2006, 17:13
WORKS FINE....U NEED TO CHANGE THAT LAST TEMPLATE EDIT U STATED BECAUSE IT LOOKED LIKE U MENT CHANGE IN THA vBShout [Template Cache],WEN REALLY U MENT IN THA vBShout [Template Alteration]

Luggruff
16 Oct 2006, 11:11
Does vBshout 2.0 work with vbulletin 3.6.2?
Or do I have to wait for an upgrade?

Elsie
22 Oct 2006, 12:42
does the "show on all pages" work with 3.6.0?

taumau
29 Oct 2006, 22:16
Is there a vbshout box for vb 3.6.0 ?:paranoid:

Blue-Inc
03 Nov 2006, 21:38
Is there a vbshout box for vb 3.6.0 ?:paranoid:

Look here (http://www.vbhackers.com/forum/showthread.php?t=4536) my freind! ;)

Calibre_k
09 Nov 2006, 21:13
dont understand how to do this on all forums

Knightmane
06 Dec 2006, 00:31
Would it be okay... where it says change $forumid, array (169,170)

to set it to (forumhome, and the forumid) of a single forum?

Example: $forumid, array (forumhome,170)

Or does it have to be numbers? I don't want to lose the shoutbox on the forumhome page. Any suggestions?

Red14
14 Dec 2006, 19:55
Thank you, this is perfect, and works like a champ right out of the gate. I spent an hour pouring through the original thread, I'm so glad I found this one.