when the user goes to a page on the forum have it put the current time in the file or database of that user. then use code somthing like this:
PHP Code:
if($timeuserwasonlinelast 900 <= time()){ // 900 is the number of secs in 15 mins
//do somthing to say user is online