1
acris
counting online users
  • 2005/11/5 11:56

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Hi, guys
When using the x223 no final version i'd noted that most of time the counting was putting the webmaster's IP twice in the list of the online users. It appears as logged in and as a visitant too.
I thought it was an error of such a beta version, but it seams the problem continues existing in the final release.
I really cannot say taht it is a XOOPS problem, because sometimes it does not happen. And, I think it is usefull to say, it seams to be happening just with the webmaster's IP.
My concern is about the reading count for the forum: is that strange thing affect the reading count, putting there readings that didn't happen?
Thanks,
Acris

2
JMorris
Re: counting online users
  • 2005/11/5 12:28

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Acris,

Would mind reporting this to the sf.net bug tracker?

Thank you,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
acris
Re: counting online users
  • 2005/11/5 12:33

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Ok, I'll do that.
Acris

4
acris
Re: counting online users
  • 2005/11/5 16:14

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Ops: I just find out that the problem occurs in one instalation of the XOOPS 20132...
I already comented that in the sourceforge.
Acris

5
acris
Re: counting online users
  • 2005/11/6 5:10

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Another oops: I was always trying to define if the problem occures too with another users than the webmaster. At this night I'v got the proof: yes, any user can appear twice in the list of the onlile users... it complicates the problem. Perhaps something about caches or coockies...
But, then, why it does not happens always?
Ok, I'll go back to the sf.net bug tracker right now.
Thanks
Acris

6
acris
Re: counting online users
  • 2005/11/9 11:53

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


I think i must share this answer from SourceForge.net with you. I am changing my host and can't do any changes right now, but it can be usefull for someaone else.
Acris
Quote:

Please - a bit of patience. This issue is important to you,
we understand that, but please give us a bit more than a
weekend to respond.

The online handler has a garbage collection routine so that
it doesn't check and discard timed-out online users on
every
request. Therefore it can be somewhat unprecise.

You can remedy some of that by removing the garbage
collection randomiser so it will always run.
This is done by editing
modules/system/blocks/system_blocks.php, the
b_system_online_show() function

Find these lines:
mt_srand((double)microtime()*1000000);
// set gc probabillity to 10% for now..
if (mt_rand(1, 100) < 11) {
$online_handler->gc(300);
}

and replace them with just
$online_handler->gc(300);

But I wouldn't recommend making business solutions based
on
the Who's Online block. Instead, I would suggest using a
stats tracking tool like PHP-Stats, AWStats or Webalizer,
when it is so crucial to your business.

Login

Who's Online

339 user(s) are online (254 user(s) are browsing Support Forums)


Members: 0


Guests: 339


more...

Donat-O-Meter

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

Latest GitHub Commits