I have no idea how to do this but there are a couple hacks that know if you're online...IM being one of them. It shouldn't be difficult for some of the seasoned hackers to come up with the code.
It does seem to me though that the UBB would have to determine the status of each person on every topic page for each person opening a thread.
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.