2 May 17, 2008 09:36
YOU will write this plugin!
Please clarify for me: you are talking about a progress bar that actually shows page views. This idea does not have a "vote for me" feature - instead it shows page views and considers that a measure of popularity.
IF this is so then I think it wouldn't be too hard, but it would probably be a hack more than a plugin. A "clean" hack though: like, not hacking core files. Just add stuff to conf/hacks.php then a bit to your skin to include the progress bar. Progress bars are neat. You can cheat them up really easy by using a background image for the bar itself then using a .png file of (for example) 12 pixels tall and 1 pixel wide, then making the image be width=146 height=12 for a bar showing 146 of whatever the maximum is.
A long time ago there were a couple of hacks that did something similar. They put 1 to 10 little boxes in a row to sort of show how many views a post had gotten. You had to tell the hack "1000 hits = 10 boxes" or whatever you liked. So what you might want to do is make it so that you could set a scale on it. For example some of my posts claim to have 150,000 page views which I don't believe but whatever: I would probably want to divide that down so that 150,000 views meant the maximum width of the bar, then scale all other hits accordingly. OR say that after X number of page views it gets a full bar with a little + symbol next to it?
But yeah this would be neat. I could probably use part of it to show download counts as a progress bar for all the zips that I let get downloaded.
I'm still stuck in translator land though :( The big ticket issues on the authors part are all fixed, but I am totally rethinking how to handle translations. Plus I found something in the core translation messages.po files that bugs my plugin to no end: msgid lines that start with "" and have the actual text on the next line :'(