Skip to forum content

PunBB Forums

Lightweight PHP-based Forum

You are not logged in. Please login or register.


[ Closed ] Bug in update_users_online

PunBB Forums → PunBB 1.3 bug reports → Bug in update_users_online

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 3

  • bedroom
  • Extension Developer
  • Offline
  • Registered: 2005年12月01日
  • Posts: 27

Topic: Bug in update_users_online

Lines 1541-1542 in functions.php, the code doesn't do what the comment says.

// If the entry is older than "o_timeout_visit", update last_visit for the user in question, then delete him/her from the online list
if ($cur_user['idle'] != '0')

This causes the following problem :

User A is inactive for longer than "o_timeout_online"
User B browses the board, user A is removed from the list of online users (idle = 1)
User A is still inactive (reading/writing a very long post)
User B browses the board, user A is completely removed from the online table and sees his date of last visit modified to the date of his last action, THUS loses track of his unread messages.

Users should always be considered as online (idle or not) for as long as o_timeout_visit. My users tend to idle a lot, so I had configured "o_timeout_visit" to 24 hours back in version 1.2.

The code should be :

// If the entry is older than "o_timeout_visit", update last_visit for the user in question, then delete him/her from the online list
if ($cur_user['logged'] < ($now-$forum_config['o_timeout_visit']))

like it was before.

  • Slavok
  • PunBB Developer
  • Offline
  • From: Russia
  • Registered: 2008年06月11日
  • Posts: 1,238

Re: Bug in update_users_online

We will investigate this problem, thank for reporting.

  • From: Russia
  • Registered: 2008年07月22日
  • Posts: 713

Re: Bug in update_users_online

Posts: 3

Pages 1

You must login or register to post a reply

PunBB Forums → PunBB 1.3 bug reports → Bug in update_users_online



AltStyle によって変換されたページ (->オリジナル) /