1
Guido83
Who's Online doesn't function properly
  • 2004/1/12 1:11

  • Guido83

  • Just popping in

  • Posts: 60

  • Since: 2003/12/7


Hi all!
I have a problem with my Who's Online block. The block keeps showing a user as being online long after the user has logged off. Does anyone know a solution for this?
Thanks!

2
Aine
Re: Who's Online doesn't function properly
  • 2004/1/12 3:35

  • Aine

  • Just popping in

  • Posts: 21

  • Since: 2002/7/10


There is a timer on it. I'm not sure the exact time limit on it, but the user will disappear usually around 5-7 minutes later. It is not a bug or anything.

3
corker
Re: Who's Online doesn't function properly
  • 2004/1/12 3:42

  • corker

  • Just popping in

  • Posts: 8

  • Since: 2003/12/1


no, there's a randomized thing built in to reduce the load from reprocessing it over and over. on high traffic sites it helps a lot, but if you don't get too much traffic it won't refresh often enough... it's set to refresh 10% of the time out of the box; you can change it but i can't remember how.

4
Guido83
Re: Who's Online doesn't function properly
  • 2004/5/18 10:27

  • Guido83

  • Just popping in

  • Posts: 60

  • Since: 2003/12/7


Is there anybody who can remember how to change that option? Thanks!

5
Mithrandir
Re: Who's Online doesn't function properly

modules/system/blocks/system_blocks.php

Lines 38-40:
if (mt_rand(1100) < 11) {
    
$online_handler->gc(300);
}


Change the 11 in if(mt_rand(1,100) < 11) { to whatever value you want.

On a related note, I am working with Brash on an improved who's online block, which pulls data from PHP Stats (must be installed as a separate script and share database with XOOPS) and compares it to the session table in XOOPS.

So far it seems to be working ok (but need more testing on somewhat higher load) and can be seen as a preview onhttp://xoops.web-udvikling.dk

Login

Who's Online

157 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits