Jump to content

[solved]Set time to show ip address as offline


Recommended Posts

It is the following function in modules/statshome/statshome.php that determines how long a visitor is counted as online:

private function getVisitorsNow()
{
   return Db::getInstance()->getValue('
   SELECT COUNT(DISTINCT cp.`id_connections`)
   FROM `'._DB_PREFIX_.'connections_page` cp
   WHERE TIME_TO_SEC(TIMEDIFF(NOW(), cp.`time_start`)) < 900');
}



By default, visitors are considered online for 900 seconds (15 hours). You can change it to 60 seconds.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...