Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Mike L, capnbob), 32 Guests and 17 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/13/08
Posts: 596
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#167109 - 10/25/06 09:33 PM More Who's Online
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Its there away the the total members online listed
can be increased, i think its maxing at 6 at the mo,
but i would like to increase that?

I'm trying to put together a Who's Online Classic Style,
as members say they miss seeing more of who's online.

Any help would be appreciated
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#167110 - 10/25/06 09:54 PM Re: More Who's Online [Re: Mark S]
Flyin V Offline

member
Registered: 06/05/06
Posts: 118
Do you mean this?
http://www.ubbcentral.com/forums/ubbthreads.php?ubb=online

On my forum I put a link to that page up in the menu bar.
I don't use the content island Who's Online
Top
#167113 - 10/25/06 11:13 PM Re: More Who's Online [Re: Flyin V]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Untested, but in cache_builders/online_now.php:
Find:
Code:
$query = "
	select t1.ONLINE_DISPLAY_NAME,t2.USER_ID
	from {$config['TABLE_PREFIX']}ONLINE as t1,
	{$config['TABLE_PREFIX']}USER_PROFILE as t2
	where t1.ONLINE_USER_TYPE = 'r'
	and t1.USER_ID = t2.USER_ID
	and t1.ONLINE_LAST_ACTIVITY > '$Outdated'
	and t2.USER_VISIBLE_ONLINE_STATUS = 'yes'
	order by t1.ONLINE_LAST_ACTIVITY DESC
	limit 6
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
$count = 0;
$userlist = "";
$users = array();
while (list($username,$uid) = $dbh->fetch_array($sth)) {
	$users[$count]['uid'] = $uid;
	$users[$count]['name'] = $username;
	$count++;
} // end while

// If we reached 5 then there are more online, we provide a link
if ($count == 5) {
	$userlist .= "{$ubbt_lang['MORE']}";
} // end if


Replace with (this increases to what i assume is 10, but likely 11 ;):
Code:
$query = "
	select t1.ONLINE_DISPLAY_NAME,t2.USER_ID
	from {$config['TABLE_PREFIX']}ONLINE as t1,
	{$config['TABLE_PREFIX']}USER_PROFILE as t2
	where t1.ONLINE_USER_TYPE = 'r'
	and t1.USER_ID = t2.USER_ID
	and t1.ONLINE_LAST_ACTIVITY > '$Outdated'
	and t2.USER_VISIBLE_ONLINE_STATUS = 'yes'
	order by t1.ONLINE_LAST_ACTIVITY DESC
	limit 11
";
$sth = $dbh->do_query($query,__LINE__,__FILE__);
$count = 0;
$userlist = "";
$users = array();
while (list($username,$uid) = $dbh->fetch_array($sth)) {
	$users[$count]['uid'] = $uid;
	$users[$count]['name'] = $username;
	$count++;
} // end while

// If we reached 10 then there are more online, we provide a link
if ($count == 10) {
	$userlist .= "{$ubbt_lang['MORE']}";
} // end if
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#167121 - 10/26/06 08:54 AM Re: More Who's Online [Re: Gizmo]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
Nice one gizmo

Obvious when you know wherer too look lol

Thanks again...
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
Yesterday at 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33840 Topics
181693 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image