Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
Jock3r Posted April 4, 2020 Posted April 4, 2020 Hello, Is there any way to make the Who's Online Widget display users for a longer time? I have checked out the ones on marketplace but they lack the guests and anonymous counts which I would like those to be shown as well
Miss_B Posted May 9, 2020 Posted May 9, 2020 6 hours ago, Jock3r said: Bump Are you ok with editing files? Navigate to yourforum/System/Session/Store folder and open the Database.php file. There find this code: array( 's.running_time>?', \IPS\DateTime::create()->sub( new \DateInterval( 'PT30M' ) )->getTimeStamp() ), array( 'core_sessions.running_time>' . \IPS\DateTime::create()->sub( new \DateInterval( 'PT30M' ) )->getTimeStamp() ), And change 30, which is the number of minutes for the online session time. I have not tested this, but I think that it shoud work. Hope it helps.
Steve Bullman Posted May 10, 2020 Posted May 10, 2020 16 hours ago, Jock3r said: That did not work unfortunately. @Miss_B I did this ages ago, if I remmeber correct something had to be changed at server level
Jock3r Posted May 10, 2020 Author Posted May 10, 2020 5 hours ago, Steve Bullman said: I did this ages ago, if I remmeber correct something had to be changed at server level As far as I know online list depends on php's session time, which I changed to 60 minutes as well, but not entirely sure regarding the timing on whos Online widget
Recommended Posts