.3here's a humble little modification i added to my bb after installing the wonderful who's online hack (thanks dave+crew!!).
you will need to have the
who's online hack installed.
i think that seeing who is online adds a bit of excitement, and thought it'd be nice to make the listing of the number of online users more promiment. this mod has also been expanded a touch to distinguish between 'person' and 'people' when listing the amount of user(s) online.
basically, this just puts the number of users online inside a forum as opposed to the forum listing page. this is useful for those boards which only have one forum, but of course it can be expanded to allow for different total online counts for different forums. it's a bit silly how simple this is. regardless, i think it's a useful. it's exciting to be giving something back after getting so many nice hacks and so much useful info from the ubbdev community.
-(1)------Backup------------------------------we'll be working with ubb_library.pl and forumdisplay.cgi . for good measure, you should back them up.
-------------------------------------------------(2)------Start!--------------------------------in ubb_library.pl, find:
$totalcount = $guestcount + $membercount;and right below it, add:
$peeps = "person";a line or two below that, look for:
if (!$include_yourself) { $totalcount++; }and directly below that, add:
if ($totalcount < "2") { $peeps = "person"; }
else { $peeps = "people"; }
}save the file, close and upload it.
next, open up forumdisplay.cgi.
find the
3rd instance of $BorderTop. my bb is already a bit hacked up, so i don't remember what is originally here on a fresh install, but basically this is the part right above the table where the topics appear. assuming you have no hacks that take up this space, add in the following bit:
$totalcount $peeps onlinedon't forget to fill in the url---^ and change the path to access online.cgi. save, close, upload.
that's it!
laughably simple, isn't it? yet i find this additional placement of 'who's online' to be a nice addition at the bottom of the forum listings page.
-------------------------------------------------(3)------Notes--------------------------------thanks to
CM86 &
MasterMind for help with the peeps declaration. thanks to
Dave Downin & crew for the original hack+info. thanks to
ubbdev.com for the forum.
------------------------------------------------[This message has been edited by sc (edited September 08, 2000).]