View Full Version : Chat Modifications - ZH - vBShout On All Pages
This modification was brought to you by
KXDesign
http://www.kxdesign.com/
~Hack name
vBShout On All Pages!
~Hack description
Will display vBShout 2.0 box on every forum page!You can choose manual instructions or just reimport this product.
~Hack options
None
~Hack info
File uploads: 0
Template edits: 0
Templates: 0
File edits: 0
Plugins: 0
SQL Queries: 0
Phrases: 0
Settings: 0
Install time: 2 minutes
Install level: Easy
~Hack installation
Step 1: Open plugin vBShout[Template Cache] and find:
if (THIS_SCRIPT == "index")
Replace with:
if (VB_AREA == "Forum")
Step 2: Open plugin vBShout[Template Alternation],change hook location to global_start and 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()));
}
Step 3: Open the plugin again and find:
switch ($vbulletin->options['shout_position'])
{
case 1:
$Position = '<!-- what\'s going on box -->';
break;
case 2:
$Position = '<!-- end what\'s going on box -->';
break;
case 4:
$Position = '<!-- main -->';
break;
default:
$Position = '$navbar';
break;
}
$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);
And replace with:
$Position = '<!-- / nav buttons bar -->';
$vbulletin->templatecache['navbar'] = str_replace($Position, $Position . '<br /> $Shoutbox', $vbulletin->templatecache['navbar']);
~Hack screenshots
None
~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.
If does not work on some custom styles: click (https://vborg.vbsupport.ru/showpost.php?p=1220939&postcount=92)
Shazz
12-02-2006, 06:14 PM
Ill try it out on my 3.6.2
And get back later :)
StuntFactoryX
12-02-2006, 07:02 PM
any plans in the future to make this work w/ the flatfile vbshout? nice hack though.
I already tried this on that one but no I am not planning that,
Shazz
12-02-2006, 07:32 PM
Not made for the flatout release?? dang it ;(
No this won't work for 2.1
Calibre_k
12-02-2006, 07:43 PM
I got this
Fatal error: Call to undefined function: isbanned() in /domains.com/forum/global.php(356) : eval()'d code on line 112
I reimported it
Calibre_k
12-02-2006, 08:12 PM
vBShout 2.0 AJAX Shoutbox for vBulletin (On all Pages)
I imported your vbshout xml
Allow Overwrite Yes
and when I enable it I get error
AMG021
12-02-2006, 08:56 PM
MY vbshout disappeared :(
VaaKo
12-03-2006, 05:05 AM
cool man
/me clicks install!
GoLDeNLaNd
12-03-2006, 08:31 AM
when i look vbshout it says loading ....... , what can i do ?
If the product does not work then try the manual instructions.Because the product somehow doesn't work for everybody.Tested on 3 boards and it worked well on 2 of them,
Calibre_k
12-03-2006, 11:53 AM
Figured rest out...
Open plugin vBShout[Template Alternation],change hook location to global_start and find and delete:
What do I delete? Where is hook location? I have done rest of changes but I still see shoutbox on forum index.
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()));
}
In plugin manager.Those are plugins
Calibre_k
12-03-2006, 01:29 PM
Thanx i was editing vbshout.xml
Calibre_k
12-03-2006, 01:33 PM
So do I delete all this from [Template Alternation]?
Where is hook location that i have to change?
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()));
yes and the hook location is a drop down box when you are editing the plugin
Calibre_k
12-03-2006, 03:18 PM
Thanks for your help but in the drop down box i'm not sure which to be looking at theres loads.
and at top of forum i get this
Parse error: syntax error, unexpected '}' in /home/forum/index.php(536) : eval()'d code on line 197
You forgot to delete one } when you deleted 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()));
}
Calibre_k
12-03-2006, 04:09 PM
When I 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()));
}
Fatal error: Call to undefined function: isbanned() in /home/forum/index.php(536) : eval()'d code on line 198
I cant find hook location in drop down.
lol there is a drop down menu called hook location and there you have to find global_start!
Calibre_k
12-03-2006, 04:26 PM
Vbulletin : General
global_start
Is that it?
Calibre_k
12-03-2006, 04:30 PM
Fatal error: Call to undefined function: isbanned() in /home/.giggsy/desibakw/desibakwaas.com/forum/global.php(356) : eval()'d code on line 312
Try replacing
if ($vbulletin->options['shout_banned_perms'] == 2 && isBanned($vbulletin->userinfo))
{
$Shoutox = '';
}
else
{
eval('$Shoutbox = "' . fetch_template('forumhome_vbshout') . '";');
}
with eval('$Shoutbox = "' . fetch_template('forumhome_vbshout') . '";');
Calibre_k
12-03-2006, 04:41 PM
Ziki THANK YOU SOO MUCH FOR HELPING ME IM SORRY FOR PESTERING YOU MUCH APPRECIATED BRO. THANK YOU
Just as i was about to give up IT WORKED WITH YOUR LAST IDEA
So please click install :)
Calibre_k
12-03-2006, 04:59 PM
Done thans its a fantastic hack THANK YOU ONCE AGAIN.
Calibre_k
12-03-2006, 06:23 PM
When i bann users from shoutbox they get an error
Warning: Invalid argument supplied for foreach() in /vbshout.php on line 293
wolfyman
12-03-2006, 06:32 PM
great addition.
Can anyone tell me how to do this, but replace the shoutbox with a link to my live chat from 8PM to midnight?
Shazz
12-03-2006, 06:40 PM
great addition.
Can anyone tell me how to do this, but replace the shoutbox with a link to my live chat from 8PM to midnight?
Um not really the thread to ask in, even though youve asked in all of them :rolleyes:
wolfyman
12-03-2006, 06:47 PM
Um not really the thread to ask in, even though youve asked in all of them :rolleyes:
well then - thanks for your helpful advice. Oh, wait - you didn't help at all. Correct me if I'm wrong, Shazz, but isn't a community about helping?
I figure this might be the BEST thread to ask in, since the author understands this hack and php better than I do.
How about if you scurry along to somewhere that you can contribute, rather than acting like your condescending know-it-all opinion matters? kthx :)
Shazz
12-03-2006, 06:51 PM
well then - thanks for your helpful advice. Oh, wait - you didn't help at all. Correct me if I'm wrong, Shazz, but isn't a community about helping?
I figure this might be the BEST thread to ask in, since the author understands this hack and php better than I do.
How about if you scurry along to somewhere that you can contribute, rather than acting like your condescending know-it-all opinion matters? kthx :)
Oh sorry to interrupt, You asked in every SINGLE vbshout thread, gets kind of annoying in every thread I click in. This has vBshout on all pages not turn it off at a certian time.
Scurry along somewhere? I can't when youve posted this everywhere in everythread sorry its hard to get away
wolfyman
12-03-2006, 06:54 PM
Oh sorry to interrupt, You asked in every SINGLE vbshout thread, gets kind of annoying in every thread I click in. This has vBshout on all pages not turn it off at a certian time.
Scurry along somewhere? I can't when youve posted this everywhere in everythread sorry its hard to get away
I'm not here to argue with you. Either help me or put me on ignore.
I'm sorry but he is right
This has vBshout on all pages not turn it off at a certian time.
wolfyman
12-03-2006, 07:08 PM
I'm sorry but he is right
of course he is. That doesn't mean he should have an attitude with me, though. As the poster of the hack, I apologize to you if you feel my question detracted from the value of your thread, I didn't intend to take things so far off topic.
When I come to vb.org, it's to research mods, help people, and ask for help. None of the previous 6 posts were necessary, Shazz should have just ignored me.
I'll send you a PM, Ziki. THanks for your contribution to the board. :)
kabeeer
12-11-2006, 09:10 AM
not working with VB 3.6.2
Are you using vbshout 2.0 or 2.1?What is the error?If you just say "It doesn't work" I really can't help you.
Shazz
12-11-2006, 01:36 PM
Im using a old 3.5.4 code on all pages and my 2.1 is working perfect :D
I would use 2.1 too but the time stamps are a very important part for me :D
Shazz
12-11-2006, 08:30 PM
I would use 2.1 too but the time stamps are a very important part for me :D
You can still add them on..
Feckie (Roger)
12-11-2006, 09:26 PM
Im using a old 3.5.4 code on all pages and my 2.1 is working perfect :D
Does the above mean you have 2.1 on all pages or you are using 2.1 only.
If it is on all page an idea howto would be nice
Having problems with 2.0
Shazz
12-11-2006, 10:16 PM
Does the above mean you have 2.1 on all pages or you are using 2.1 only.
If it is on all page an idea howto would be nice
Having problems with 2.0
Im using 2.1 and im using it on ALL pages. With the old script of 2.0
JamieLee2k
12-11-2006, 11:37 PM
I wish I had it on all pages, Can you tell me how to add timestamps to the script? Please
Feckie (Roger)
12-12-2006, 06:05 AM
Im using 2.1 and im using it on ALL pages. With the old script of 2.0
Again Shazz
If it is on all pages an howto would be nice
bos-maxjay
01-10-2007, 07:37 AM
this is not working for me it disappears when i make changes?
BigJimTheLug
01-10-2007, 07:40 AM
I gave up on this mod, I couldn't find away to get it working.
Directions aren't precise enough and updates cannot seem to work.
Screw it.
I gave up on this mod, I couldn't find away to get it working.
Directions aren't precise enough and updates cannot seem to work.
Screw it.
I don't see why you think it isn't precise.I really don't know how to make it more clearer.
HangingClowns
01-13-2007, 03:49 AM
I manually did the changes for the shoutbox for someone's board for them. It made the shoutbox TOTALLY disappear. I then Overwrote the options with the XML product that you attached, and still, nothing. I then uninstalled the product. Then I reinstalled, and nothing still happened. I'm thinking that the version of the shoutbox that they have might be old, but i'm not sure. I do not have access to the FTP, is there any way that I could tell without that?
Shazz
01-13-2007, 03:54 AM
Mmm.. I got mine to work on every page, including some custom modifications placing it in the header.
Can't remember what I did
It was a simple plugin change, didn't use this one though
Does look harder -.-
nicker
01-14-2007, 02:54 PM
Works for me, great hack! Any way of getting it to show on the arcade page? Arcade is ibpro.
I think there is a hack like that in here
ICY ICE
01-14-2007, 05:28 PM
uninstalled old.....reinstalled new....
Works like a charm!
Is there a way to get the shoutbox on the footer?
Sure just change this: $Position = '<!-- / nav buttons bar -->';
$vbulletin->templatecache['navbar'] = str_replace($Position, $Position . '<br /> $Shoutbox', $vbulletin->templatecache['navbar']);
to :
$Position = '<!-- /content area table -->';
$vbulletin->templatecache['footer'] = str_replace($Position, $Position . '<br /> $Shoutbox', $vbulletin->templatecache['footer']);
ICY ICE
01-15-2007, 02:04 AM
Worked great....thanks!
kewlfoogle
01-15-2007, 03:54 AM
Loading...
is all I get on this new install...
am I missing somthing... where is the vbshout.php file ?
This is only for an already installed vbshout
PoetJA-1975
01-20-2007, 04:55 PM
Worked great & Easy edits!
Thanx for the sharing ;)
Jacquii.
Limerick
02-03-2007, 06:28 AM
Hello all and Ziki,
I don't know why but days of shouts do not change.
For example shouts from monday (we're saturday) are still on "Today"
I must say that there was no more new shouts since that day.
Any help ?
Shazz
02-03-2007, 06:40 AM
Hello all and Ziki,
I don't know why but days of shouts do not change.
For example shouts from monday (we're saturday) are still on "Today"
I must say that there was no more new shouts since that day.
Any help ?
Id say that would be a shoutbox problem. Nothing to do with vBShout on all pages
Unless your just experiancing that problem now
If you did apply this modification to the 2.1 shoutbox wierd things may happen
Limerick
02-03-2007, 03:28 PM
Thanks guys, so what should I do?
In fact, I use this hack (http://www.vbulletin-ressources.com/forum/showthread.php?t=2563).
Limerick
02-06-2007, 07:37 PM
No chance to have a solution ? :(
I am sorry but this just is not the support thread for you problem.If I would understand France I might help but otherwise :)
Limerick
02-06-2007, 08:27 PM
You're right but it was just to show you that it was the v2.1 upgraded with your hack (if I understood well...).
And maybe this information could give you an idea why times do not change while days after days. First shouts from first days (more than a week ago) are still on "Today" or "Yesterday" (it has change once).
I had to deactivated the hack :(
Note : unfortunately, there's no support there on it. They just translated it...
There is a hack at vBnova that is for 2.1 :)
FreshFroot
02-07-2007, 04:55 AM
Well.. I have a odd issue. I tested this on my test board and it works fine with all skins.
On my active board.. it works fine for the default skin, however for the customized skins it doesn't show the shoutbox?
Is there a code I could put in the template to have it displayed manually?
Look in your custom styles if there is this comment:
<!-- / nav buttons bar -->
FreshFroot
02-08-2007, 03:44 AM
I looked and I DO have <!-- / nav buttons bar --> code in the navbar template.
Make sure it is on the same spot as in the default style
FreshFroot
02-09-2007, 08:37 PM
I'll double check it.. if so.. is ther eany code I can put so it will show up anywhere?
Yeah just change $Position = '<!-- / nav buttons bar -->'; to $Position = $vbshoutplacement; and then anywhere put $vbshoutplacement
FreshFroot
02-12-2007, 05:25 PM
well i used the "<!-- / nav buttons bar -->" instead in the navbar for the custom skins and it works fine... EXCEPT.. for one skin. This skin shows shoutbox on all pages except.. the main page... I'm not sure why.. I tried putting <!-- / nav buttons bar --> in ForumHome Template.. but it didn't do anything...
That's irrational so I really can't help on that one.
cOuNtErFiET
03-04-2007, 05:54 AM
im running vbShout 2.1 on a 3.5.8 board and the manual edit worked for me when nothing else would so just posting my feedback thanks for the lookout Ziki
gchristo
03-04-2007, 08:50 PM
Thank you, Ziki!
Manually installed on vB3.54 with vBShout 2.0.
Had to make the eval('$Shoutbox = "' . fetch_template('forumhome_vbshout') . '";'); change as well and all is good!
Regards,
gchristo.
deezelpope
03-07-2007, 05:21 PM
Bummer...won't work on my board.:(
parabat
03-07-2007, 09:25 PM
I'm running 3.6.4 and vbshout 2.0 and have done both the manual and the xml changes. Both throw up this message.
Fatal error: Call to undefined function: isbanned() in /**/***/***/airbornesoldier.com/Forums/global.php(356) : eval()'d code on line 321
Any help please.
-PB
Are you sure you removed:
function isBanned($user)
{
return (isBanned_Check($user['userid'], 'shout_banned_users') || isBanned_Check($user['usergroupid'], 'shout_banned_usergroups'));
}
parabat
03-07-2007, 09:48 PM
Yes, definitely.
As I said, I tried both methods.
-PB
parabat
03-07-2007, 10:08 PM
I see the default is below the navbar. How do I set it to be above the Main forum as I have other things below the navbar?
-PB
cOuNtErFiET
03-08-2007, 04:26 AM
i upgraded to 3.6.5 and wont work something is up i get that banned error too
EDIT: ok i got it had to change the vbShout Option: Banned Permissions to "can view shoutbox, but not message" and worked for me, i remember having to do this with an old vbshout, but of course im using vbshout 2.1 not 2.0
deezelpope
03-11-2007, 11:50 AM
Bummer...won't work on my board.:(
Ok, tried again...it works, just not on all skins. Worked on 3 out of 5...bizarre. Didn't work on Blak-Ice or GirlTalk3.:confused: :eek: So, I reverted back to just having it on the index.:rolleyes: :(
GekkoPixie
03-19-2007, 05:39 PM
Worked great for me! Thank you!
FRANKTHETANK 2
03-25-2007, 06:27 PM
worked on vbshout 2.1 also good work
GnG_ShoOk
03-30-2007, 05:23 AM
i installed it correct, but the box comes up and all but it just says loading... and it nevr changes...?
GnG_ShoOk
03-30-2007, 05:38 AM
is there some link i need for a server ?
Um no.What vBshout version?
Whatsoever
04-06-2007, 10:08 AM
I've had a problem off the VbShout gone on some skins i had. I updated the navbar template.
Works fine for me. Just go to your navbar template and find:
<!-- / PAGENAV POPUP -->
</if>
You can also go too the bottom of the editor place.
Add below:
$Shoutbox
Oh that's a good point.I will update post 2.
VaaKo
04-12-2007, 07:38 AM
It's not working, when I import the product my index.php gets all blank!
I'm using vbshout v3!
v3???This is vb 2.0 only.Where is v3?
beasterday78
04-19-2007, 12:26 AM
OK! I have read through all of the posts for this thread. I have looked through and tried several things. I am using vshout2.0 And I have the latest version of vbulletin. I can see the shout box on all of my pages, but it is saying loading. It never changes.
ABeautifulBrown
04-21-2007, 02:28 AM
v3 = v2.0.2
if you've downloaded the current zip, you have it.
has anyone gotten this working?
This is only 2.0 !Read the thread!
Draygonia
04-29-2007, 06:48 PM
<a href="http://www.cwalkerz.com" target="_blank">www.cwalkerz.com</a> - As you can see, it displays on the top page, but not the other pages, is there a way to fix it? It tries to display a table, but cant.
andrewtr89
05-03-2007, 01:59 PM
Great work Ziki.
If you install this with anything other than vbshout 2.0 you will get a continuous loading message. I am using vB 3.6.5
Edit:
Another thing worth mentioning, which helped me.
If you get this error, while clicking member profile page, reading PM or reputations..
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1064) : eval()'d code on line 5
try doing this -
Edit plugin "vBShout [Template Cache]" and make the following change:
Find :
if (VB_AREA == "Forum")
Change it to
if (VB_AREA == "forum")
Kinda worked for me, though im using a different Version of Shoutbox which uses flatfile.
Cheers
jessej
05-25-2007, 05:54 AM
If does not work on some custom styles: click (https://vborg.vbsupport.ru/showpost.php?p=1220939&postcount=92)
PERFECT!!! TYTY :)This is a great hack and been ok, but had 2 problems.
First was getting blank/white pages when reading pm's. I uninstalled it all, and re-installed it. Now it seems to work ok with pms, but when i go to read a pm, I get this
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1219) : eval()'d code on line 5
ONLY when I red a pm. This message is at the very top of the forum page, and it happens on all skins. I am on vb vers 3.6.5
jessej
06-02-2007, 07:40 PM
now i locked out of the admincp all together. argh!! this is a lot of probs. how can i get back into the admincp? just getting a white screen and a message at top says;
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1219) : eval()'d code on line 5
Any help grreatly appreciated.
jj
---------------
UPDATE:
went into the server, found the plugin table, modified it, and now back in. damn thats NOT fun at all. along the way i hosed a few other hacks (in the test forum only), but got em back now.
But,
still the hack for the shoutbox is ok, its the hack to install it on all pages thats hosing my stuff. and not when i do it manually, only when i import the xml file. ..
blindman4556
07-04-2007, 02:39 AM
on one of my skins, when your in internet explorer. and you type something in, it says error on page on that little bar on bottom of window. then it will open up a new window (/forums/vbshout.php?) any suggestions
the site is http://www.likenota.com/forums/ and its the default skin that does it, none of the rest
blindman4556
07-07-2007, 12:14 AM
https://vborg.vbsupport.ru/external/2010/06/10.gifmy ass
GekkoPixie
08-12-2007, 08:08 PM
This doesn't work on 3.6.8.
kellyandmark04
09-11-2007, 03:13 AM
just installed the XML file and overwrote my previous version and it works great except for one prob
im running vb 3.6.7
it shows on all pages everything works correctly but when i open a private message i see this at the top of the screen
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1243) : eval()'d code on line 5
can anyone help me resolve this issue thanks
skepticality
09-24-2007, 10:14 PM
Damn,
Well the box is on all my pages, but it only sits there 'loading' and never comes up at all! :(
Anyone have a fix for that issue?
FreshFroot
09-26-2007, 04:48 AM
best way to get rid of errors is to use the new shoutbox.. though it has less features I know it works on all and any pages you want it too...
mitomcua
09-29-2007, 06:02 PM
FreshFroot,
Which version are you using that has the feature on all pages?
imports
09-29-2007, 10:22 PM
how come mine just say loading....and it's not working
mystic10
11-25-2007, 11:42 PM
this is strange for some reason smiles are not working why i dont know
problem is not the shout box its the smiles this is what u see when u pick smiles
<img src="images/smilies/1637.gif" border="0" alt="" title="1637" class="inlineimg" />
<img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> hello
i dont know what went wrong suddenly
mystic10
11-27-2007, 03:32 PM
please please please someone help
this is strange for some reason smiles are not working why i dont know
problem is not the shout box its the smiles this is what u see when u pick smiles
<img src="images/smilies/1637.gif" border="0" alt="" title="1637" class="inlineimg" />
<img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> hello
Knightmane
01-11-2008, 04:11 AM
While I couldn't get this to work in the format that you provided in Post #1, I did manage to get the shoutbox to function at the top of every Forumdisplay page (with the exception of the dropdown font shortcuts, which most people can overlook if they know how to manually set font sizes and fonts.)
Here is how I did it, for those members who might be having similar problems.
This is simply an easy and super quick copy and paste fix.
This has been tested to work on vb3.7.0 BETA 3 and it works.
Customize/Edit your style's Forumdisplay Template.
Find $navbar and add below that:
<form action="vbshout.php?{$session['sessionurl']}" method="post" name="vbshoutform" onsubmit="return postShout(this)">
<input type='hidden' name='do' value='shout' />
<input type='hidden' name='color' />
<input type='hidden' name='fontFamily' />
<input type='hidden' name='fontWeight' />
<input type='hidden' name='textDecoration' />
<input type='hidden' name='fontStyle' />
<div id='shout_emo' style='display:none'>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" align="center">
Emoticons
</td>
</tr>
<tr>
<td class='alt2' width='100%' height='100%' align='center' valign='top'>
$Smilie_Build
</td>
</tr>
</table>
<br />
</div>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" align="center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_vbshout')"><img id="collapseimg_forumhome_vbshout" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbshout].gif" alt="" border="0" /></a>
<a href='vbshout.php?{$session['sessionurl_q']}do=archive'>Shoutbox</a>
</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_vbshout" style="$vbcollapse[collapseobj_forumhome_vbshout]">
<tr>
<td class="alt1" align="left" width="100%">
<if condition="!$vboptions[shout_editor_position]">
<if condition="$bbuserinfo[userid] > 0">
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='100%'>
<input type="text" name="shout" style="width: 90%" class="bginput" />
</td>
<td style='white-space:nowrap' width='1%'>
<input type="submit" value="Shout" class="button" />
<if condition="$vboptions[shout_extra_options]">
<input type='button' class='button' value='Clear' onclick='sb_Clear()' />
<input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' />
<input type='button' class='button' style='font-weight:bold' value='B' onclick='sb_PropChange_Button(this, "fontWeight")' />
<input type='button' class='button' style='text-decoration:underline' value='U' onclick='sb_PropChange_Button(this, "textDecoration")' />
<input type='button' class='button' style='font-style:italic' value='I' onclick='sb_PropChange_Button(this, "fontStyle")' />
<select name='font_color' onchange='sb_PropChange(this, "color")'>
{$DropDowns['color_selector']}
</select>
<select name='font_selector' onchange='sb_PropChange(this, "fontFamily")'>
{$DropDowns['font_selector']}
</select>
</if>
</td>
</tr>
</table>
<div style="height: 2px"></div>
</if>
</if>
<div id="vbshout" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:100%;">
Loading...
</div>
<if condition="$vboptions[shout_editor_position]">
<if condition="$bbuserinfo[userid] > 0">
<div style="height: 2px"></div>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td width='100%'>
<input type="text" name="shout" style="width: 90%" class="bginput" />
</td>
<td style='white-space:nowrap' width='1%'>
<input type="submit" value="Shout" class="button" />
<if condition="$vboptions[shout_extra_options]">
<input type='button' class='button' value='Clear' onclick='sb_Clear()' />
<input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' />
<input type='button' class='button' style='font-weight:bold' value='B' onclick='sb_PropChange_Button(this, "fontWeight")' />
<input type='button' class='button' style='text-decoration:underline' value='U' onclick='sb_PropChange_Button(this, "textDecoration")' />
<input type='button' class='button' style='font-style:italic' value='I' onclick='sb_PropChange_Button(this, "fontStyle")' />
<select name='font_color' onchange='sb_PropChange(this, "color")'>
{$DropDowns['color_selector']}
</select>
<select name='font_selector' onchange='sb_PropChange(this, "fontFamily")'>
{$DropDowns['font_selector']}
</select>
</if>
</td>
</tr>
</table>
</if>
</if>
</td>
</tr>
</tbody>
</table>
</form>
<br />
<script type='text/javascript'>
<!--
postingShout = false
function requestShouts()
{
if (!postingShout)
{
ShoutRequest = new vB_AJAX_Handler(true)
ShoutRequest.onreadystatechange(showShouts)
ShoutRequest.send('vbshout.php', 'nocache=' + (5 * Math.random() * 1.33) )
}
}
function showShouts()
{
if (ShoutRequest)
{
if (ShoutRequest.handler.readyState == 4 && ShoutRequest.handler.status == 200 && ShoutRequest.handler.responseText)
{
Shouts = fetch_object('vbshout')
Shouts.innerHTML = '<table cellpadding="1" cellspacing="3" border="0" width="95%" align="left">' + ShoutRequest.handler.responseText + '</table>'
setTimeout('requestShouts()', 10000)
<if condition="$vboptions[shout_messages_order]">
document.getElementById('vbshout').scrollTop = 99999;
</if>
}
}
}
function sb_CollectHV(sbForm)
{
rString = ''
inputObjs = sbForm.getElementsByTagName('input')
for (i = 0; i < inputObjs.length; i++)
{
if (inputObjs[i].type == 'hidden' && inputObjs[i].value != '')
{
rString += '&' + inputObjs[i].name + '=' + PHP.urlencode(inputObjs[i].value)
}
}
return rString
}
function postShout(formObj)
{
doShout = new vB_AJAX_Handler(true)
doShout.onreadystatechange(postedShout)
if (postingShout)
{
alert('Posting in progress..')
return false
}
Shout = formObj.shout.value
if (Shout.replace(/ /g, '') == '')
{
alert('You must enter a shout!')
return false
}
doShout.send('vbshout.php', 'do=shout&shout=' + PHP.urlencode(Shout) + sb_CollectHV(document.forms['vbshoutform']))
sb_Clear()
postingShout = true
return false
}
function postedShout()
{
if (doShout.handler.readyState == 4 && doShout.handler.status == 200)
{
postingShout = false
requestShouts()
}
}
function sb_Input_SC(sProperty, setting)
{
eval('document.forms["vbshoutform"].shout.style.' + sProperty + ' = "' + setting + '"')
eval('document.forms["vbshoutform"].' + sProperty + '.value = "' + setting + '"')
}
function getSelectionValue(eSelector)
{
return eSelector.options[eSelector.options.selectedIndex].value == 'Default' ? '' : eSelector.options[eSelector.options.selectedIndex].value
}
function sb_PropChange(eSelector, sProperty)
{
sb_Input_SC(sProperty, getSelectionValue(eSelector))
}
function sb_PropChange_Button_Value(sProperty)
{
trueValue = ''
switch (sProperty)
{
case 'fontWeight':
falseValue = 'bold'
break;
case 'textDecoration':
falseValue = 'underline'
break;
case 'fontStyle':
falseValue = 'italic'
break;
}
return (eval('document.forms["vbshoutform"].' + sProperty + '.value'))? trueValue : falseValue
}
function sb_PropChange_Button(cButton, sProperty)
{
if (cButton.value.match(/\*/))
{
cButton.value = cButton.value.replace(/\s+\*/, '')
}
else
{
cButton.value = cButton.value + ' *'
}
sb_Input_SC(sProperty, sb_PropChange_Button_Value(sProperty))
}
function sb_Smilie(code)
{
document.forms["vbshoutform"].shout.value += ' ' + code
return false
}
function sb_Clear()
{
document.forms["vbshoutform"].shout.value = ''
return true;
}
function sb_Smilies(cButton)
{
if (cButton.value.match(/\*/))
{
cButton.value = cButton.value.replace(/\s+\*/, '')
}
else
{
cButton.value = cButton.value + ' *'
}
document.getElementById('shout_emo').style.display = (document.getElementById('shout_emo').style.displa y == 'none')? '' : 'none'
}
requestShouts()
-->
</script>
Save your work and it simply works. No other edits are necessary.
You will have a single shoutbox at the top of every forumdisplay page.
((If my explaining this isn't allowed, then the Admins can remove it. Thanks.))
crazymilk
05-03-2009, 12:21 PM
Works great on all pages but on vBadvance page there is no smilies? any help anyone
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.