View Single Post
Old 04-10-2008, 11:20 PM
  Ene's Avatar 
Ene Ene is offline

X-Cart team
Join Date: Aug 2004
Posts: 907

Default More accurate 'Users Online' stats

I see that many users claim that 'Users Online' stats is quite innacurate.
Actually it isn't a bug, but a feature : -)
'Users Online' shows all the customers who open any page during the last 30 minutes.
Known bots are not counted. (The list of the known bots can be found in the include/bots.php file)

How to make this module accurate:

1. Open modules/Users_online/registered_user.php script.

2. Replace

PHP Code:
$expiry_time $curtime $config["Sessions"]["session_length"]; 


PHP Code:
$expiry_time $curtime 300// 5 minutes instead of 30 minutes 
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: (since Sept 2009)

ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer

Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
Reply With Quote