Just a thought, and I think I will try this out on our user system tomrrow. You could on every page, in my case I would put it in the footer so it wouldn't mess anything up, put in an sql statment that will call the user table, and check to see if an instant message field is blank. If it is not blank you could make it pop up a message that you have entered into it, and when it pops it up, you could have it also delete the message so it would not pop up every time they hit the page.
Quick Example:
Have a page that shows users online, with a link that says send instant message. when you click that link it will take you to a page with a text area or whatever. It will store what you enter in that text area into the usersonline table.
On the pages: Code not right, just example
$sql = mysql_fetch_array("SELECT * FROM useronline WHERE username = '$username' AND messagefield !='')
while ($a_row =mysql_fetch_array($sql))
{
JAVASCRIPT ALERT DISPLAYING $a_row[messagefield];
$sql2 = "DELETE messagefield from useronline where username = '$username' AND messagefield !=''
}
The more I think about this, the more I think it will work. You need to register the user is online on every page, and also delete users that have not moved in a while. If you are interested in this, send me an email: jcantrell@mygov.us. I am at home now, but when I get to work tomorrow I would be more than happy to send you my useronline code. I will also clean up the code I have posted here and implement it on our system tomorrow if I get a chance. Anyone out there let me know what you think.