Is there a way to show: "There are xxx visitors on the website at the moment".
xxx needs to show how many.
I was thinking about google analytics api from real visitors but maybe there is something like it already in Modx?
Evolution user, I like the back-end speed and simplicity

you probably need to enable the "Log visits" option in site settings and use a snippet to display the results
Thx, I can't write my own snippets, but I found some solution here;freehostedscripts.net/
Evolution user, I like the back-end speed and simplicity

I use SimpleCounter by SimonSimcity
http://wiki.modxcms.com/index.php/SCounter
I have fixed some errors and attach it below I forgot to add in the readme
that you need to install the tables. See the install db file (its in german so translate before running)
[ed. note: mrhaw last edited this post 12 years, 11 months ago.]
Thanks!
-- It works, no need for me to use a DB so don´t know about that.
[ed. note: fourroses666 last edited this post 12 years, 11 months ago.]
Evolution user, I like the back-end speed and simplicity

There is a function: FirstRun() that created it for you automatically using that db file!
Oké, so its being created when using the snippet the first time? Nice
I do see some "if db doesn't exists then create DB!"
Evolution user, I like the back-end speed and simplicity

Funny timing. I am setting up a web stat page for a client using scounter!
http://snag.gy/43MWI.jpg
I'm using datagrid TV's for showing the tables. Last 30 days:
Default value:
@SELECT date,count FROM `modx_scounter_daycount` ORDER BY date DESC LIMIT 0,30
Column Names
Field Names
then style as you see fit!
looks good, nice to have your own analytics :>
Evolution user, I like the back-end speed and simplicity

Grid: Top 5 days:
@SELECT date,count FROM `modx_scounter_daycount` ORDER BY count DESC LIMIT 0,5
Grid: Visitors online:
@SELECT ip,time FROM `modx_scounter_useronline` ORDER BY time DESC
All this from that one snippet.