The only thing you need to do is this Jeremy.
No new tables no new anything. Just add this in the $chatoutput HTML define in the td call
So in ubbt-inc.php you entered this
// ----------------------------
// Let's see if there are any people in the chat room - by JoshPet
$query = "
SELECT COUNT(*)
FROM {$config['tbprefix']}Online
WHERE O_What = 'chatheader'
OR O_What = 'chatroom'
OR O_What = 'chat'
";
$sth = $dbh -> do_query($query);
list($chatcount) = $dbh -> fetch_array($sth);
if ($chatcount == "1") {
$chatoutput = "<tr><td class="lighttable" align="center"><b>There is currently $chatcount user in the <a href="{$config['phpurl']}/chat.php" target="_top">Chat Room</a>. Join them!</td></tr>";
}
else if ($chatcount > "1") {
$chatoutput = "<tr><td class="lighttable" align="center"><b>There are currently $chatcount users in the <a href="{$config['phpurl']}/chat.php" target="_top">Chat Room</a>. Join them!</td></tr>";
}
else {
$chatoutput = "";
}
TWICE
CHANGE IT TO THIS
// ----------------------------
// Let's see if there are any people in the chat room - by JoshPet
$query = "
SELECT COUNT(*)
FROM {$config['tbprefix']}Online
WHERE O_What = 'chatheader'
OR O_What = 'chatroom'
OR O_What = 'chat'
";
$sth = $dbh -> do_query($query);
list($chatcount) = $dbh -> fetch_array($sth);
if ($chatcount == "1") {
$chatoutput = "<tr><td class="lighttable" colspan="2" align="center"><b>There is currently $chatcount user in the <a href="{$config['phpurl']}/chat.php" target="_top">Chat Room</a>. Join them!</td></tr>";
}
else if ($chatcount > "1") {
$chatoutput = "<tr><td class="lighttable" colspan="2" align="center"><b>There are currently $chatcount users in the <a href="{$config['phpurl']}/chat.php" target="_top">Chat Room</a>. Join them!</td></tr>";
}
else {
$chatoutput = "";
}