andybr1ggs Posted June 8, 2010 Share Posted June 8, 2010 Hi,Is there away to cut down the time a customer or visitor is shown online....theres a customer online and been showing online for the past 24 hours. I would like to set this to 1 minute if this option is available.Thanks,Andy Link to comment Share on other sites More sharing options...
rocky Posted June 9, 2010 Share Posted June 9, 2010 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 More sharing options...
andybr1ggs Posted June 9, 2010 Author Share Posted June 9, 2010 Cheers Rocky, By default, visitors are considered online for 900 seconds (15 hours). You can change it to 60 seconds. Would that be 900 minutes ;-) Link to comment Share on other sites More sharing options...
rocky Posted June 9, 2010 Share Posted June 9, 2010 Yes, my mistake. The default is 15 minutes. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now