just record the output of qa_get_logged_in_userid() to the database, along with time(), and then run a database query to show all userids where the time recorded is say within one or two minutes of the current time. Ajax refresh would also be possible. Note, if you have the badges plugin installed, this info is already stored in the ^achievements table, so you can just get it from there.