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


All times are GMT. The time now is 07:26 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.01159 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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