PDA

View Full Version : Chat Modifications - vbshout 2.0 in one forum only


utw-Mephisto
04 Jul 2006, 00:56
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 ($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")

Change


if ($forumid ==169)


to the forum id 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)

aldo7a
04 Jul 2006, 14:01
I still using vBShout 2.0 without change any thing only i upgrade my vb to 3.6.0 Beta 3 and my vb still working with me very nice.
why i should change ?
http://www.aldoha.org

utw-Mephisto
04 Jul 2006, 15:44
I think you misunderstand the purpose of this ... This is an addon / change to display the shoutbox not just on forumhome but in subforums / forums .. It just happen to work on vb 3.6 Beta .. I did not write it is a new version ..

aldo7a
04 Jul 2006, 16:39
A lot of thanks my dear now i understand what you mean

Paul M
04 Jul 2006, 18:13
I have removed the vbshout files as they should not be attached to this thread, the instructions are all that is needed, you have a link to the vbshout thread for people to get the actual modification files.

SiriusBlack22
09 Jul 2006, 07:52
you ROCK.

RFViet
14 Jul 2006, 15:22
Can i have vbshout in separate forums ?? So , each forum, members can have live help with Moderators !!

Lord Draco
14 Jul 2006, 17:18
Will it work with the VBulletin 3.6.0 Release Candidate 1?

Jon.
17 Jul 2006, 18:28
It doesn't appear to work with release candidate 2. I've set it all up, and it's not appearing in the specified forum (ID 23)

utw-Mephisto
19 Jul 2006, 05:29
It does work just fine on VB 3.6 RC2 for me ..

But because Zero released several versions of vbshout, I attached the files of the version I am using which have been removed by Paul I am afraid .. I had to figure it out myself that not all versions are working :(

You can check it out yourself :

ut2007world.com

user / pw : beer

and there go into the spam forum (bottom) to test ..

SiriusBlack22
21 Jul 2006, 14:07
I got a weird error upon displaying a profile.

What was that?

utw-Mephisto
25 Jul 2006, 06:12
??

Maybe incompatible version .. but again .. Paul removed the files so I cannot even give you the version which works fine anymore .. sorry ..

letsjoy
26 Jul 2006, 06:41
sounds good :)

World8X
06 Aug 2006, 07:59
It does work just fine on vBulletin 3.6.0 for me ...

iran.gs
08 Aug 2006, 02:14
how and where is this hook ??
a) Change the Hook Location to "global_start"

mwsforums
17 Aug 2006, 01:40
When using this hack, my forum no longer loads, and I get the following fatal error:

Fatal error: Call to undefined function: isbanned() in (server stuff)/forums/global.php(357) : eval()'d code on line 142

EDIT: Further to this, when I replace the deleted isbanned() functions, my forum loads, but when I go to the forum I want the shoutbox displayed, the box is there, but with this error displayed in the shoutbox....

Fatal error: Cannot redeclare isbanned() (previously declared in (server stuff)/forums/vbshout.php:133) in (server stuff)/forums/global.php(357) : eval()'d code on line 140

tekstylez
18 Aug 2006, 22:26
Will this work with 3.6

Dilldogs
26 Aug 2006, 03:17
how and where is this hook ??
a) Change the Hook Location to "global_start"

I need to know to?

reteep
31 Aug 2006, 09:37
This is too unstable for production use, removing the banned functions results in many problems when editing preferences.

Jealousy10312
31 Aug 2006, 19:34
It works for me with 3.6. Have a look: www.blabsource.com

I just have a question myself:

How do I remove the option for users to change colors? My board has a white backround & if someone uses white, then the text cannot be seen.

dt~
01 Sep 2006, 09:06
Fatal error: Call to undefined function: isbanned() in (server stuff)/forums/global.php(357) : eval()'d code on line 142

This is another half-assed plug. Uninstalled.

MarsNIIT
03 Sep 2006, 04:02
Please help me fix Error :

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1152) : eval()'d code on line 5

Craigex
09 Sep 2006, 23:46
I got this error when I try it on vb3.6

Warning: Invalid argument supplied for foreach() in /includes/functions_forumlist.php(346) : eval()'d code on line 3

Snake
17 Sep 2006, 19:15
Thanks. I'll check this out soon!

voteforbird
20 Sep 2006, 20:38
I'm on 3.6.1 and this isn't working for me, either. Any idea what to do?

voteforbird
20 Sep 2006, 21:25
I got this to work by making the hook forumdisplay_complete instead of global_start

ldwebtech
28 Sep 2006, 04:25
Is this works for vb3.6.1

cunder
02 Oct 2006, 15:37
Hallo
how I can remove the space between the name and reported
Look pics what I mean.
thanks

cunder
02 Oct 2006, 15:37
Is this works for vb3.6.1

yes:)

rainyleaves
17 Oct 2006, 15:42
Works fine with 3.6.2~~
Thanks utw-Mephisto!!

mikeclarke
17 Oct 2006, 23:19
Can I have different shouts on different forums with this?

rainyleaves
18 Oct 2006, 00:10
Hallo
how I can remove the space between the name and reported
Look pics what I mean.
thanks

Edit templete : forumhome_vbshout_shout

1. find
<td width="1%" style="white-space:nowrap" align="left" valign="top">
2. Replace
<td width="1%" style="white-space:nowrap" align="right" valign="top">


3. Find
<if condition="!$Shout[s_me]">
4. Add above
</td><td width="100%" align="left">


That it .. ^^

NicholasMarshal
06 Dec 2006, 12:59
Thanks very much for this - it's tricky to know where to start sometimes...

bollie
24 Dec 2006, 10:04
a) Change the Hook Location to "global_start"

???????

ButchB
06 Mar 2007, 02:15
I installed this and it shows up on the right forum and all but it just says "loading"? It's been like this for a few minutes. How long does it take? WIll it do this everytime somebody goes to that page? And will only members be able to use it? Thanks

ams3521
28 Mar 2008, 23:06
does this work with vbshout 2.1?

thanks