![]() |
"Who Is Online (Shouting)" in the vbShout shoutbox
The original vbShout is required for this (obviously) and can be downloaded here:
https://vborg.vbsupport.ru/showthread.php?t=93097 Because my members keep using the shoutbox more as a chat room, they asked if it would be possible to get a list of users currently online/participating in the shoutbox. OK, and this is what I smashed together as an answer to this request :) This addon adds an IRC like userlist to the right side of the shoutbox. Like the shoutbox itself, the userlist gets updated with AJAX calls as well, so it's always up-to-date, no reloading required :) Technically it shows a list of everyone who shouted in the last three minutes. Who hasn't shouted for three minutes is considered "to be somewhere else" and no longer available to talk to, and so does not get listed anymore. *INSTALLATION* ================ Is pretty easy. Just upload the "vbshoutwol.php" to your forums root (i.e. .../forum/) and do the two edits (described in the README) to the "forumhome_vbshout" template for all styles you wanna use the WOL list on. If you have the "Template Manager" installed on your board you can simply import the template .XML also included in this archive - this saves you the manual edits :) "Template Manager" can be found here: https://vborg.vbsupport.ru/showthread.php?t=91038 Have fun! |
Installed and works flawlessly! Thanx!!!
|
For anyone that is not too sure where to add the final code edit :-
Quote:
Useful .. thanks for the hack Hellcat Clicked install |
Great Hack, Congratz!
I'm actually going to transfer the shoutbox on the Javachat page, in order to have a multiple shoutbox / irc java chat page :D Just a quick question: Is the one below the line to manipulate the time a user is show to be "online" ? PHP Code:
cheers, ze :raucher: |
Thanks, works like a charm!
|
This is pretty cool, I'll add this asap. :)
|
Glad you like it :)
Quote:
You might chance this to whatever suits best for you :) |
Excellent!
|
used the template manager, and installed it in seconds...flawless!!
|
<a href="http://www.gsnforce.com/forum/index.php?" target="_blank">http://www.gsnforce.com/forum/index.php?</a>
Mine just keeps constantly loading |
Quote:
When I try to access http://www.gsnforce.com/forum/vbshoutwol.php I get a "404 - File not found". |
just a small point i am sure i will be corrected if wrong but i see [/code] beneath your whos shouting box. I didnt add that to my code as i thought it looked wrong and mine works so try that??????
|
I've tried to install it, but I keep getting this error in the Users online box:
Code:
Notice: Undefined index: HTTP_REFERER in F:\Inetpub\Sites\forum.seti.nl\includes\class_core.php on line 1573 Code:
define('REFERRER', $_SERVER['HTTP_REFERER']); BTW, you left a [/code] tag in the readme, right behind the first replacement ;) |
Hmm, no idea what's up with that class_core error....
Looks like some problem with PHP's autoglobals.... But yes, the [/code] shouldn't have been there.... shame on me ;) I already uploaded an updated ZIP where I removed that tag from the README :) |
We're running PhP 4.4.1
Could that be the problem? We're gonna upgrade shortly. |
Quote:
You only get this when running this addon? |
Installed it
translated it to arabic loved it thanks alot man I appreciate this |
Quote:
|
Sweet! This should be part of the next Shoutbox update!
|
Update, the above mentioned error only appears in FireFox. But I still see the people that are online.
In Internet Explorer it just works fine. |
It seemes that in FireFox the HTTP_REFERER isn't always given.
I tried this: if ($_SERVER['HTTP_REFERER'] == "") { $HTTP_REFERER = "http://my.page.nl/"; } But that doesn't do the trick. Any ideas? |
Quote:
[high]* Hellcat fires up FireFox[/high] |
Is it possible to change the three minutes limit and how??
|
Quote:
|
Quote:
This line is found in vbshoutwol.php at line #8 |
Quote:
|
***INstalled***
With the template manager all work perfect and been done in 2 minutes. Thnx m8 |
Thanks, yea I uploaded it to the wrong folder haha
|
Quote:
|
Quote:
At the top of the script I added this line: Code:
error_reporting(E_ALL ^ E_NOTICE); It's not pretty, but it does the trick in Firefox :) Edit: Actualy I see this code a lot in vBulletin scripts. I guess it's not so dirty after all :D |
I tried installing this but it just says loading.
I uploaded the 1 file to my forums folder. I moded the templates. any pointers? thanks. |
Weird.
This usually means the .PHP file isn't sending any response. Can you give me a URL to take a closer look? |
It was my fault. When i did a search for requestShouts() it put me in the middle of the page, where the requestShouts() I was looking for was at the bottom. installed and working perfect. thank you.
|
Quote:
Quote:
EDIT: Who's shouting show's up underneath the shout box in firefox for me, if it floats left its under the shoutbox on the left. It I have it float right, it's under the empty space on the right where it should be. In IE it's fine. |
http://www.luggruff.se/shoutwolwhat.PNG
why is this?? And how can I make it right? o_0 this is my template code at the moment: Code:
<div id="vbshout" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:88%;float:left;"> what is causing the line to break here?? o_0 |
Quote:
|
I'm already on it :)
[EDIT] I just tried my own forum in FireFox and it works fine, so it should something else. |
Quote:
Edit: Oh, well I'll dig around and see, any idea what could affect the placement of the who's shouting box? |
I guess it's just another <div> issue.... well, we'll see :)
|
Quote:
|
All times are GMT. The time now is 12:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|