MyBB Hacks

Full Version: Downloads Stats
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A long time ago when I first started using XThreads and Zinga was asking for suggestions for added features I asked ZingaBurga if he would add a downloads stats system. Well, that was not a priority for ZingaBurga (which is fine - he asked for suggestions - he does not have to act on all of them Smile ) so I decided to have a go at it myself.

It is still in progress, and maybe is not very interesting to most forum owners, but I am pretty pleased with what I have so far.

I have a downloads stats page showing all downloads for a certain user on their User CP and now, after editing XThreads xthreads_attach.php core file I have a method to capture the downloads per item per day in the DB.

Based on that, I now have this little graphical representation of Downloads on a Day. Its using Open_Flash_Charts2 (http://teethgrinder.co.uk/open-flash-chart-2/) and is accessed via the UserCP. I don't have a working History Graph yet (am struggling a bit on how to access the data and convert to open flash chart format) but I am working on it.

Next step is to put the Stats Panel and the Graph all into ONE page in the USER CP.

I just wanted to show what I have so far as Zinga says he is interested in what we do with XThreads Smile
Very nice statistics Smile
Looks nice there!
Thanks guys - I got a lot of help from a lot of people to get this far - but I have learned LOADS about php in the process. I am really grateful to the people who showed lots of patience when I got confused. Smile
Reference URL's