Page 1 of 1

A tiny stats viewer

PostPosted: Tue Dec 28, 2010 1:07 pm
by Dre
Hey guys, I made a tiny stats viewer that uses ServerStats in the dol database so we can see quickly the server usage =)

Example (random data): http://virant.fr/~dre/test.php

File: see update post near the topic's end.

Re: A tiny stats viewer

PostPosted: Tue Dec 28, 2010 4:54 pm
by Graveen
Hi Dre, this is a nice idea and an useful app ! TY !

Re: A tiny stats viewer

PostPosted: Thu Aug 18, 2011 7:24 pm
by HunabKu
I test it and don't work for me :'(
Code: Select all
Date (format: YYYY-MM-DD):
Start( ! ) Notice: Undefined index: date in C:\wamp\www\Forum\stats\index.php on line 16 Call Stack #TimeMemoryFunctionLocation 10.0002677208{main}( )..\index.php:0 " id="date" />
End( ! ) Notice: Undefined index: datemax in C:\wamp\www\Forum\stats\index.php on line 17 Call Stack #TimeMemoryFunctionLocation 10.0002677208{main}( )..\index.php:0 " id="datemax" />
with JpGraph error: 25121 errors

Re: A tiny stats viewer

PostPosted: Fri Aug 19, 2011 10:28 am
by Dre
Updated: http://amtenael.com/dre/stats.zip

Added: some more stats (nb account, played time, average level).
Less warnings but if you have problem with jpgraph, I can't do anything, see: http://jpgraph.net/ (I don't have any problem with it :/).

Re: A tiny stats viewer

PostPosted: Thu Nov 03, 2011 3:48 pm
by HunabKu
Do not work with PHP 5.3.4. "JPGraph error; 25121" on all pages.
I tried to update JPGraph to lastest version : 3.5.0b1 and that's the same.
What's your PHP version please Dre ?

http://zanza91.free.fr/tsv_jpgraph_bug.jpg

Re: A tiny stats viewer

PostPosted: Fri Nov 04, 2011 5:32 pm
by Dre
It's not a JPGraph's bug, you certainly don't have any statistics in your database.

You need to activate "statsave_interval" in server properties and have entries in "serverstats" table.

Re: A tiny stats viewer

PostPosted: Fri Nov 04, 2011 5:52 pm
by HunabKu
Thank you for respond me.

I have activate "statsave_interval" ('-1' to '1') and reload server poperties with /serverp command.
I've wait a stat record in "serverstats" table about one minute.
No record after 1 minute with a log-in-out so i will wait this night.

Thanks a lot for this !

Re: A tiny stats viewer

PostPosted: Wed Nov 09, 2011 6:03 am
by HunabKu
work after reboot on one-per-one page but not on index page.

Re: A tiny stats viewer

PostPosted: Sat May 04, 2013 8:00 am
by HunabKu
Link down

Re: A tiny stats viewer

PostPosted: Mon May 13, 2013 8:28 pm
by Dre
Update: one file only, using D3.js instead of jpgraph

Example with random data : http://virant.fr/~dre/test.php

Re: A tiny stats viewer

PostPosted: Mon May 13, 2013 10:23 pm
by Shadexx
Thank you!

Re: A tiny stats viewer

PostPosted: Tue May 14, 2013 11:55 am
by Tolakram
Thanks Dre!

Re: A tiny stats viewer

PostPosted: Tue May 14, 2013 4:22 pm
by HunabKu
Great thanks Dre !

Re: A tiny stats viewer

PostPosted: Wed May 15, 2013 12:09 am
by Graveen
TY Dre. Worth to be attached in the project.