vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   "Who Is Online (Shouting)" in the vbShout shoutbox (https://vborg.vbsupport.ru/showthread.php?t=106049)

Hellcat 01-22-2006 10:00 PM

"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!

cheech4487 01-22-2006 11:37 PM

Installed and works flawlessly! Thanx!!!

TTG 01-23-2006 12:04 AM

For anyone that is not too sure where to add the final code edit :-

Quote:

Find :
requestShouts()
It's the one at the bottom of the forumhome_vbshout template :)

Useful .. thanks for the hack Hellcat
Clicked install

ze_roberto 01-23-2006 03:06 AM

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:

$tframe time() - (60 3); 

I guess the "3" is the number in minutes (vbshoutwol.php, line 8)

cheers, ze :raucher:

Snake 01-23-2006 06:12 AM

Thanks, works like a charm!

Red Blaze 01-23-2006 11:47 AM

This is pretty cool, I'll add this asap. :)

Hellcat 01-23-2006 01:25 PM

Glad you like it :)


Quote:

Originally Posted by ze_roberto
Just a quick question: Is the one below the line to manipulate the time a user is show to be "online" ?

PHP Code:

$tframe time() - (60 3); 

I guess the "3" is the number in minutes (vbshoutwol.php, line 8)

Yes, that's right.
You might chance this to whatever suits best for you :)

SuperJETT 01-23-2006 02:11 PM

Excellent!

Gizmo5h1t3 01-23-2006 04:28 PM

used the template manager, and installed it in seconds...flawless!!

GamerJunk.net 01-23-2006 06:26 PM

<a href="http://www.gsnforce.com/forum/index.php?" target="_blank">http://www.gsnforce.com/forum/index.php?</a>

Mine just keeps constantly loading

Hellcat 01-23-2006 08:48 PM

Quote:

Originally Posted by RasMasta
http://www.gsnforce.com/forum/index.php?

Mine just keeps constantly loading

Looks like you either forgot to upload "vbshoutwol.php" or you put in the wrong dir.

When I try to access http://www.gsnforce.com/forum/vbshoutwol.php I get a "404 - File not found".

Mackem1979 01-23-2006 09:38 PM

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??????

S@NL - BlackBik 01-23-2006 09:48 PM

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
Line 1573 in class_core says:
Code:

define('REFERRER',      $_SERVER['HTTP_REFERER']);
Do you have any idea what's wrong?

BTW, you left a [/code] tag in the readme, right behind the first replacement ;)

Hellcat 01-23-2006 11:18 PM

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 :)

S@NL - BlackBik 01-23-2006 11:52 PM

We're running PhP 4.4.1
Could that be the problem?
We're gonna upgrade shortly.

Hellcat 01-24-2006 12:41 AM

Quote:

Originally Posted by S@NL - BlackBik
We're running PhP 4.4.1
Could that be the problem?
We're gonna upgrade shortly.

Hmm, I have the same version on my server where it runns without problems.

You only get this when running this addon?

mbader71 01-24-2006 03:35 AM

Installed it
translated it to arabic
loved it

thanks alot man I appreciate this

S@NL - BlackBik 01-24-2006 03:14 PM

Quote:

Originally Posted by Hellcat
Hmm, I have the same version on my server where it runns without problems.

You only get this when running this addon?

Unfortunatly the answer is yes.

rinkrat 01-24-2006 03:24 PM

Sweet! This should be part of the next Shoutbox update!

S@NL - BlackBik 01-24-2006 08:12 PM

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.

S@NL - BlackBik 01-24-2006 09:26 PM

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?

Hellcat 01-25-2006 12:23 AM

Quote:

Originally Posted by S@NL - BlackBik
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?

I will take a look into this.... can't promise anything, but I'll try :)
[high]* Hellcat fires up FireFox[/high]

mbader71 01-25-2006 09:20 AM

Is it possible to change the three minutes limit and how??

S@NL - BlackBik 01-25-2006 09:46 AM

Quote:

Originally Posted by Hellcat
I will take a look into this.... can't promise anything, but I'll try :)
[high]* Hellcat fires up FireFox[/high]

Thanks in advance, Hellcat :)

S@NL - BlackBik 01-25-2006 09:47 AM

Quote:

Originally Posted by ze_roberto
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:

$tframe time() - (60 3); 

I guess the "3" is the number in minutes (vbshoutwol.php, line 8)

cheers, ze :raucher:

@mbader71: Change 3 into any limit you want :)
This line is found in vbshoutwol.php at line #8

mbader71 01-25-2006 09:52 AM

Quote:

Originally Posted by S@NL - BlackBik
@mbader71: Change 3 into any limit you want :)
This line is found in vbshoutwol.php at line #8

thank you :up:

Freakpyromaniac 01-25-2006 06:48 PM

***INstalled***
With the template manager all work perfect and been done in 2 minutes.

Thnx m8

GamerJunk.net 01-26-2006 04:38 AM

Thanks, yea I uploaded it to the wrong folder haha

rantrave 01-26-2006 02:58 PM

Quote:

Originally Posted by HellCat
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

I'm finding that it only updates if you, the user, is typing into the shoutbox. If you are just reading the previous shouts, it does not update along with shouts that are being cast. Any ideas?

S@NL - BlackBik 01-29-2006 11:28 AM

Quote:

Originally Posted by Hellcat
I will take a look into this.... can't promise anything, but I'll try :)
[high]* Hellcat fires up FireFox[/high]

I've been looking in it for myself and I found a "quick and dirty" sollution.
At the top of the script I added this line:
Code:

error_reporting(E_ALL ^ E_NOTICE);
This supresses the Notice errors.
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

mrcrx 02-08-2006 07:57 PM

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.

Hellcat 02-08-2006 10:22 PM

Weird.
This usually means the .PHP file isn't sending any response.

Can you give me a URL to take a closer look?

mrcrx 02-09-2006 11:44 AM

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.

o0Hubba0o 02-12-2006 04:06 PM

Quote:

Originally Posted by mrcrx
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:

Originally Posted by TTG
For anyone that is not too sure where to add the final code edit :-


Quote:

Find :
requestShouts()
It's the one at the bottom of the forumhome_vbshout template :)

Useful .. thanks for the hack Hellcat
Clicked install

That should be specified in the installation read-me since there are multiple instances of requestShouts().

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.

Luggruff 02-16-2006 10:16 PM

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;">
                                                Loading...
                                        </div>

                                        <div id="vbshoutwol" class="alt2" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:12%;float:right;">
                                        <div id="vbshoutwolhd" class="tcat">Shouting:</div>
                                        <div id="vbshoutwolusers">
                                                Loading...
                                        </div>
                                        </div>
                                        <div style="clear:both;"><img src="$vboptions[cleargifurl]" border="0" hight="1" width="1" /></div>

tried setting the 12% one to right, didn't make any difference.. just switched sides..
what is causing the line to break here?? o_0

o0Hubba0o 02-17-2006 12:05 AM

Quote:

Originally Posted by Luggruff
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;">
                                                Loading...
                                        </div>

                                        <div id="vbshoutwol" class="alt2" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:12%;float:right;">
                                        <div id="vbshoutwolhd" class="tcat">Shouting:</div>
                                        <div id="vbshoutwolusers">
                                                Loading...
                                        </div>
                                        </div>
                                        <div style="clear:both;"><img src="$vboptions[cleargifurl]" border="0" hight="1" width="1" /></div>

tried setting the 12% one to right, didn't make any difference.. just switched sides..
what is causing the line to break here?? o_0

Same problem as me, are you using firefox? Because in IE it shows up fine, I hope someone who knows more about this than me will respond soon, I really like this feature, but where it's at is annoying.

Hellcat 02-17-2006 01:32 AM

I'm already on it :)

[EDIT]
I just tried my own forum in FireFox and it works fine, so it should something else.

o0Hubba0o 02-17-2006 01:34 AM

Quote:

Originally Posted by Hellcat
I'm already on it :)

[EDIT]
I just tried my own forum in FireFox and it works fine, so it should something else.

Thanks alot Hellcat, really appreciate!

Edit: Oh, well I'll dig around and see, any idea what could affect the placement of the who's shouting box?

Hellcat 02-17-2006 01:37 AM

I guess it's just another <div> issue.... well, we'll see :)

o0Hubba0o 02-17-2006 01:38 AM

Quote:

Originally Posted by Hellcat
I guess it's just another <div> issue.... well, we'll see :)

Yeah, I'll mess around with the <div>'s and see if it helps anywhere.


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
  • Page Generation 0.01845 seconds
  • Memory Usage 1,837KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete