• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[Suggestion] "Activity over past 24 hours" graphic and Sparklines

Erik

Well-known member
#1
This is not self-promotion: Floren saw the graphic in my signature and suggested I open a new suggestion thread on it, so I did. :)

Basically, it would be really cool to have a little activity graph like the one in my signature displayed on the homepage, either in the Members Online Now or Forum Statistics boxes. These little graphs are often referred to as "Sparklines," and are used around the web for displaying data in a small and easy-to-understand. It would be really cool to see them integrated in many places within the XenForo software.

For a little more technical detail on my signature:
I'm running a cron job that parses the homepage every 15 minutes, then enters the stats (Visitors/Members/Guests online) into a database. It then reads back all the entries in the database from the last 24 hours, and uses a slightly modified PHP Sparklines implentation to render out the graph to a file. :)

I plan to keep this running indefinitely, which means in two years I can produce a massive graph of the activity of the XenForo forums since this date, with an accuracy of 15 minute intervals. It should be pretty cool to see. :)

I'm including the file here in case I change my signature in the future:
 

0ptima

Well-known member
#5
That really cool! Dont know if I would want it on my front page, but would nice to have in a stats section.
 

Onimua

Well-known member
#6
I plan to keep this running indefinitely, which means in two years I can produce a massive graph of the activity of the XenForo forums since this date, with an accuracy of 15 minute intervals. It should be pretty cool to see. :)
That would be cool to see! Just make sure you keep a backup. ;)
 

EQnoble

Well-known member
#14
Happy B-day ...what happened to your rocks? :) Indeed this could be a nice addition to the software...i'm interested in finding out more about how to implement something like this. Was going to try and read up but just woke and am still groggy.
Can this be used to pull live data from somewhere or must all the integers be entered in manually.
Anyways... Hope your annual birth celebration was splediferous.
 

Erik

Well-known member
#16
Happy B-day ...what happened to your rocks? :) Indeed this could be a nice addition to the software...i'm interested in finding out more about how to implement something like this. Was going to try and read up but just woke and am still groggy.
Can this be used to pull live data from somewhere or must all the integers be entered in manually.
Anyways... Hope your annual birth celebration was splediferous.
I had my username changed for simplicity and clarity. :)

The script parses the data from the homepage using a regex. So I don't have to enter the data manually, but if the format or wording of the data on the homepage changes, the script breaks and I have to change it (this has already happened once or twice). :) Originally it was on a 15 minute interval, but I've changed it to 30 minutes to reduce load and because 15 minutes wasn't really needed. :)

If implemented as a modification, it could just pull data internally, which would eliminate a lot of the load and redundancy problems. :)