Here you go.
NOTE: You need to have Firefdly's Users browsing this thread hack installed.
Code:
-----------------------
In showthread.php:
-----------------------
After this:
-----------------------
if ($showforumusers) {
$datecut = $ourtimenow - $cookietimeout;
$browsers = '';
$comma = '';
-----------------------
Add this:
-----------------------
$usercount = 0;
-----------------------
After this:
-----------------------
} else {
$invisibleuser = '';
}
eval("\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
$comma = ', ';
-----------------------
Add this:
-----------------------
$usercount++;
-----------------------
Before this:
-----------------------
eval("\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
-----------------------
Add this
-----------------------
$usercount++;
-----------------------
After this:
-----------------------
if ($browsers) {
-----------------------
Add this:
-----------------------
$s = 's';
if (intval($usercount) < 1) {
$usercount = 0;
}
if (intval($usercount) == 1) {
$s = '';
}
-----------------------
In the "showthread_browsing" template:
-----------------------
Replace the contents with this:
-----------------------
<br>(<b>$usercount</b> User$s Browsing this Thread: $browsers)