For anyone using the Usercount Addon, there is a bug with this. If you have a forum where a guest is viewing the thread listing and they are the only one in that forum, the line will look something like this:
0 User011a20289dccd608bbf00f7eba44917b 24 browsing this Forum:
To fix this, you will need to find:
PHP Code:
if ($browsers) {
if (!$moderatedby) {
$onlineusers = "";
}
$i = 'are';
if (intval($usercount) < 1) {
$usercount = 0;
}
if (intval($usercount) == 1) {
$i = 'is';
}
$s = 's';
if (intval($usercount) < 1) {
$usercount = 0;
}
if (intval($usercount) == 1) {
$s = '';
}
eval("\$onlineusers .= \"".gettemplate('forumdisplay_loggedinusers')."\";");
}
}
and replace that with:
PHP Code:
$s = 's';
$i = 'are';
if (intval($usercount) < 1) {
$usercount = "No";
}
if (intval($usercount) == 1) {
$s = '';
$i = 'is';
}
if ($browsers) {
if (!$moderatedby) {
$onlineusers = "";
}
eval("\$onlineusers .= \"".gettemplate('forumdisplay_loggedinusers')."\";");
}
}