OK - let me post this mod here until it's ready for "prime time". I pulled the code from my site.... but I've got some other things going on. So I haven't tested it.
It should work fine... but somebody test it and let me know.
For this to work, the chat page must be named "chat.php" as it looks for the entry of "chat" in the online table.
If the chat page is named 'chatroom.php' then you will need to modify my code to search for 'chatroom' instead.
This adds the number of users chatting to the top of each page on your site, and offers a link to the chatroom (chat.php) - again, if your chat file is named something else, you'll need to edit the link in the nav bar templates.
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.