Just edit ubb_whos_online.cgi and replace with the appropriate code.
That really seems like a good idea, I may do it to my board. If I do, I will write up some instalation instructions for you so you don't have to go searching.
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.