UBB.Dev
Posted By: JustDave [UBBT 6.0] Who's Online Box - 06/10/2002 6:13 AM
This will display a list of users online above your forum listings. Invisible users (only seen by admins) will be in italic text. Admins and Moderators will be in their related text color. Total number of Members and Guests are displayed. The list of current usernames online is limited to 30, to keep large sites with many, many people online from taking up to much space in the online box. If there are more than 30 logged in users online there will be a link displayed taking the user to the online.php script for a complete list of users.

Download the attached file. Unzip and follow the instructions. Upload the affected files and enjoy.

Example located here:
http://www.chattersonline.com/test/ubbthreads.php?Cat=

Attached File
49306-whosonline.6.0.zip  (11 downloads)
Posted By: AllenAyres Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:15 AM
Muchas gracias
Posted By: JustDave Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:16 AM
Your welcome.
Posted By: msula Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:25 AM
Thanks! Although I'm a little too tired to do that tonight, but I'll put that on tomorrow's to-do-list
Posted By: AllenAyres Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:25 AM
does it look too heavy with the td header above it?
Posted By: JustDave Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:29 AM
I kinda think so. But hey, that's just me.
Posted By: AllenAyres Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:31 AM
ok, I think you may be right

For those who want the td header above the wol box, add this code:

code:

<tr>
<td class="tdheader" align="left">
<a href = "{$config['phpurl']}/online.php?Cat=$Cat" $target>{$ubbt_lang['WHO_ON']}</a>
</td></tr>



I am gonna change it a bit
Posted By: AllenAyres Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:34 AM
Looks a bit better, I'll have to think about it

Very easy to install Dave, and adds very few queries, thanks
Posted By: JustDave Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:36 AM
It's looking much better now.

I think that the "Who's Online" link in the menu bar is redundant though?

LoL yeah I'm picky some times.
Posted By: AllenAyres Re: [UBBT 6.0] Who's Online Box - 06/10/2002 6:42 AM
yeah, I should probably take it out of the nav, but then it would be gone from the rest of the forum pages as well. The original box just looks like it needs something to anchor it or give it more "gravity".

Maybe moving the WOL info from "extra info" to a td header above, similar to the way vb does it?

Who's Online : There are 6 registered and 1 anonymous users online.

With the names in the lighttable underneath.... hmmmmmmmm...

or maybe just move it to the bottom of the categories so it doesn't look too heavy

ahhh.. well, just thinking out loud
Posted By: JoshPet Re: [UBBT 6.0] Who's Online Box - 06/10/2002 7:57 AM
If you removed the "Who's Online" link from the text menu... you could put the list of Who's online on every page. I personally think that'd be cool... .then you'd always know who's online (not just on the list of forums) as I'm addicted to watching "who's online". You'd always have a recent refresh whether you were replying to a post, reading a PM, or viewing a post etc... the whole list of who's online could always be at the top.

Or would having that on every page add to many queries?
Posted By: AllenAyres Re: [UBBT 6.0] Who's Online Box - 06/10/2002 8:36 AM
Not sure how many queries it would add to every page, but if you only wanted logged in members to see it, you could add it as a box/table to ubbtregisterednav.tmpl instead of ubbthreads.tmpl. I think the code for ubbthreads.php would probably need to go to ubbt.inc.php then
© UBB.Developers