Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I was curious, so I looked into the ubbthreads.php and postlist.php files. Both of them use $a and $r variable for the user count. So you could do something like this in your ubbt_registered.tmpl file:

Code
 $r {$ubbt_lang['C_ONLINE2']} $a {$ubbt_lang['C_ONLINE4']}


That's the same script that's used in the ubbthreads.tmpl file. Since the $ubbt_lang variables are in the generic.php language file that script should work for all pages (at least you'll get the words). Keep in mind that the ubbthreads.php file will generate a value for $r and $a that are for the entire forum, but the postlist.php file will generate a $r and $a that is just for the forum being viewed.

You could add your own custom language entries in the generic.php file and create unique text for your hack

Sponsored Links
Entire Thread
Subject Posted By Posted
Users Currently Online ScottCargill 12/28/2003 7:44 PM
Re: Users Currently Online Dunk 12/28/2003 9:57 PM
Re: Users Currently Online Dalantech 12/28/2003 11:22 PM
Re: Users Currently Online Dalantech 12/28/2003 11:23 PM
Re: Users Currently Online omegatron 12/28/2003 11:38 PM
Re: Users Currently Online ScottCargill 12/28/2003 11:42 PM
Re: Users Currently Online Dalantech 12/28/2003 11:46 PM
Re: Users Currently Online Dalantech 12/28/2003 11:56 PM
Re: Users Currently Online ScottCargill 12/29/2003 12:04 AM
Re: Users Currently Online omegatron 12/29/2003 12:16 AM
Re: Users Currently Online ScottCargill 12/29/2003 12:27 AM
Re: Users Currently Online omegatron 12/29/2003 12:40 AM
Re: Users Currently Online ScottCargill 12/29/2003 12:55 AM
Re: Users Currently Online omegatron 12/29/2003 12:58 AM
Re: Users Currently Online ScottCargill 12/29/2003 1:12 AM

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2125
Topics Created 0
Posts Made 0
Users Online 0
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)