Previous Thread
Next Thread
Print Thread
Rate Thread
#42633 09/08/2000 4:06 AM
Joined: Sep 2000
Posts: 5
sc
Offline
Junior Member
Junior Member
Offline
Joined: Sep 2000
Posts: 5
.3
here'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 online

don'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).]

Sponsored Links
#42634 09/09/2000 11:12 PM
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
'nother nice one sc.. do you have a link to an example?

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 850
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 27
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)