The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Sparkline graphing hack... I've built one, is there a demand for it to be published?
I've built a sparkline plugin named sparkplug.
Sparklines are documented here: http://www.edwardtufte.com/bboard/q-...1OR&topic_id=1 And to give you an idea, mine look like this: I have sparklines currently indicating: * Forum stats on the home page ** Number of threads per day over the past month ** Number of posts per day over the past month ** Number of new users per day over the past month * Member list and member info pages ** Number of posts per day over the past month by that user It also accounts for style changes, and will modify the background colour accordingly. Further, it has file caching built in to prevent any sparkline being generated twice within a 12 hour period. Worst case scenario is that a user gets an update once every 24 hours as I use 12 hours on the file based cache, and then add 12 hours to the expiry header of the image when we send it to the browser. Anyhow... it works fine, but will need a little tidying if there is a demand for this kind of thing to be published... I'd also like a little peer review on the file cache side of things, namely, how to cope with errors. I also haven't localised the tooltips/alt text of the images. Take a look and let me know what you think. |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
Quote:
I'm going to add them again soon... so I shall package it when I do. It won't be a Plugin though, it will definately require uploading files... an Extension at the least. Note though... the cached files can multiply wildly! |
#4
|
||||
|
||||
Quote:
Extensions are fine. But I have grown lazy and don't like editing vb files anymore. lol I even use plugin system for my own mods I do on my boards. |
#5
|
|||
|
|||
Quote:
I like the plugin system... but now I'm personally stripping out all PHP, placing it in the files in the right places or creating external files, and only using the product system to manage phrases, templates, settings, etc. That's probably how I shall release it... as files to upload, and a product to install. I'll avoid PHP edits if I can... but if I do do them, they will be few and far between. |
#6
|
||||
|
||||
I want this and I want it now, mister!
How's that for showing support? |
#7
|
|||
|
|||
Quote:
I'll do it next week Actually... I might do it on mine this evening and then take care of packaging next week Quote:
It consists solely of file uploads and template edits at the moment, but then, I haven't yet moved the tooltips to phrases (can I be bothered? does anyone here really need a Product just to have tooltips localised?). I've also adjusted it so that the forum home sparklines feature dots and text indicating: In Red: Lowest value in the data In Green: Highest value in the data In Blue: Most recent value in the data Finally... beware... if you have lots of styles, because alpha's do not work in .png's, I'm generating a new image for EACH UNIQUE BGCOLOR! This will simply multiply the number of images it has generated. And erm... yeah, go have a look to see if you like: http://www.bowlie.com/forum/ If you like, I'll package for Monday maybe... or Wednesday. |
#8
|
||||
|
||||
Oh, sure! Torture us over some woman. I see how you are now.
|
#9
|
|||
|
|||
This appears to be working quite well... but I'm going to have a play and see if I can get PNG alpha's working rather than generate a new image per colour scheme.
Question: Would you rather have alpha's knowing they don't work in IE but do in FF, Safari, Opera... or would you rather have an image generated per unique background colour? |
#10
|
||||
|
||||
I use IE so the pngs wouldn't do me any good.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|