FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to reset Most Users Online counter.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How to reset Most Users Online counter. [message #29668] Mon, 09 January 2006 12:53 Go to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
Hello.

I would like to reset the Most Users Online counter.

I tried to set to zero value most_online and most_online_time fields in fud_skfm_stats_cache table, but it didn't helped..

Best regards.
Odp: How to reset Most Users Online counter. [message #29669 is a reply to message #29668] Mon, 09 January 2006 12:56 Go to previous messageGo to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
It seems that it's helped.. Smile
I've wait a few minutes and this stats are updated.

Regards
Re: Odp: How to reset Most Users Online counter. [message #29671 is a reply to message #29669] Mon, 09 January 2006 14:51 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
To zero the table you need to zero the cache_age column.

FUDforum Core Developer
Odp: Re: Odp: How to reset Most Users Online counter. [message #29751 is a reply to message #29671] Fri, 13 January 2006 14:22 Go to previous messageGo to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
Hm.

I wanted to reset the counter because probably someone using some robots or something else on my page in the counter gets high value..

It is possible to make this counter nonvulneable for this?

Regards.
Re: Odp: Re: Odp: How to reset Most Users Online counter. [message #29752 is a reply to message #29751] Fri, 13 January 2006 19:43 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Not really, since the only way to identify bots is to monitor user-agent on each sessions and that's too much overhead.

FUDforum Core Developer
Odp: Re: Odp: Re: Odp: How to reset Most Users Online counter. [message #29756 is a reply to message #29752] Fri, 13 January 2006 20:14 Go to previous messageGo to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
so maybe you can introduce the new feature, which lets us to choose the timespan, between the visit of new users will be ignored?
For example 10 seconds.. ?

Or maybe it'll we possible to save the history of MostUsers and this feature lest us to delete theseh bots visit.

[Updated on: Fri, 13 January 2006 20:16]

Report message to a moderator

Re: Odp: Re: Odp: Re: Odp: How to reset Most Users Online counter. [message #29757 is a reply to message #29756] Fri, 13 January 2006 20:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The new user is determined based on their session id, not anything else.

FUDforum Core Developer
Odp: How to reset Most Users Online counter. [message #29916 is a reply to message #29668] Tue, 24 January 2006 08:03 Go to previous messageGo to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
ok.

But I would like to prevent to override this counter: I mean that that realistic "most users online" on my forum (link is in my profile) is about 20-30 users.

Very often this number growup do 130 - 200... Especially during the night or very early morning. Probably this is made by some offline browsing agent (Teleport similar) or maybe this is a small DDos..

So, maybe you could implement some feature like that:

a = ignore_new_session_timespan = 10 seconds
if (new_seesion_start_time - last_sesson_start_time <10) then do_not_increase_most_users_online_counter?

Best regards

[Updated on: Tue, 24 January 2006 08:03]

Report message to a moderator

Re: Odp: How to reset Most Users Online counter. [message #29926 is a reply to message #29916] Tue, 24 January 2006 18:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It requires too much calculation and ultimately it would miscount on popular forums where during peak hours you have people update & create sessions much more often then 10 seconds.

FUDforum Core Developer
Odp: How to reset Most Users Online counter. [message #29927 is a reply to message #29668] Tue, 24 January 2006 19:03 Go to previous messageGo to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
theese "10 seconds" may be configurable..

I'va to reset this counter once per day, so my statistics are not useles......
Re: Odp: How to reset Most Users Online counter. [message #29929 is a reply to message #29927] Tue, 24 January 2006 19:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Just add code specific to you site to block search engines.

FUDforum Core Developer
Odp: Re: Odp: How to reset Most Users Online counter. [message #29931 is a reply to message #29929] Tue, 24 January 2006 19:30 Go to previous messageGo to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
Yes, it's a solution, but theese changes will be replaced on next forum upgrade...

So I'm looking for something different..
Re: Odp: Re: Odp: How to reset Most Users Online counter. [message #29933 is a reply to message #29931] Tue, 24 January 2006 19:32 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
How would they be replaced?

FUDforum Core Developer
Odp: Re: Odp: Re: Odp: How to reset Most Users Online counter. [message #29935 is a reply to message #29933] Tue, 24 January 2006 19:34 Go to previous messageGo to next message
pogar is currently offline  pogar   Poland
Messages: 18
Registered: September 2005
Karma: 0
Junior Member
As I know only templates are not replaced during the upgrade.

If I modify forum core I susspect that next upgrade will replace modified files...
Re: Odp: Re: Odp: Re: Odp: How to reset Most Users Online counter. [message #29937 is a reply to message #29935] Tue, 24 January 2006 20:13 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The patch will be a part of the next release, so it'll stick around.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: php4 vs php5
Next Topic: Weird message gotten on every new post......
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 09:53:45 GMT 2024

Total time taken to generate the page: 0.03362 seconds