Site stat for people currently online

I just bought the site stat manager and was wondering if anyone knew how to make a new site stat that shows how many members are currently online?

 

I can recall that back in the days of 5.x.x, there used to be a site stat that showed just that exactly.

Quote · 26 Jan 2016

Something like this.

Name: onl
Title: Online
User Link: search.php?online_only=1
User Query: SELECT COUNT(`ID`) AS `count_onl` FROM `Profiles` WHERE `DateLastNav` > SUBDATE(NOW(), INTERVAL 5 MINUTE) AND (`Couple`=0 OR `Couple`>`ID`)

https://www.deanbassett.com
Quote · 26 Jan 2016

Thanks Deano for that unfortunately it didn't work.

Quote · 26 Jan 2016

It does work. I tested it on my site. However. To make it work properly, change the INTERVAL 5 MINUTE to INTERVAL 1 MINUTE

Also. Previous versions of dolphin you used to be able to edit the page block cache from within the page builders. You can't seem to do that anymore in dolphin 7.2.1. Yet the block is still cached. So you need to manually edit the cache setting in the table sys_page_compose and change the cache value for the site_stat block to 0

Then clear dolphins cache. After that you should find it works properly.

https://www.deanbassett.com
Quote · 26 Jan 2016

Thanks Deano. That now seems to be working.

Quote · 27 Jan 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.