Welcome, Guest. Please Login or Register.
July 23, 2025, 07:13:34 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  'Most Online' in Stats Error? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: 'Most Online' in Stats Error?  (Read 412 times)
chvitaly
Noobie
*
Posts: 13


'Most Online' in Stats Error?
« on: April 30, 2003, 09:16:28 AM »
Reply with quote

Hi,

I don't know if this is an error, or intended behavior.

In Stats, 'Most Online' date shows the first time the highest number of people was online. But if the number of people online is the same later on the date doesn't change to the most recent 'most online' date. Is this a feature?

If it is, could you let me know where this date is updated, so that I could change the check to '>=' from '>'.

Thanks,

Vit
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:'Most Online' in Stats Error?
« Reply #1 on: April 30, 2003, 09:37:19 AM »
Reply with quote

Boardindex.php, find:
      $oldMost = $temp[0];
      if ($total_users > $oldMost)


Replace:
      $oldMost = $temp[0];
      if ($total_users >= $oldMost)


-[Unknown]
Logged
chvitaly
Noobie
*
Posts: 13


Re:'Most Online' in Stats Error?
« Reply #2 on: May 04, 2003, 03:42:37 AM »
Reply with quote

Thanks,

But that generated database error about a duplicate key entry the next day after I chanaged the file.

Also, I looked in the area of the lines you pointed out, and found what I was looking for:

I replaced

   if (($modSettings['trackStats'] == 1) && ($total_users > $modSettings['mostOnline']))
   {

with
   if (($modSettings['trackStats'] == 1) && ($total_users >= $modSettings['mostOnline']))
   {


I hope this will work...

Vit
« Last Edit: May 04, 2003, 08:40:03 AM by chvitaly » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  'Most Online' in Stats Error? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.087 seconds with 21 queries.