As I mentioned in an earlier post, I had seen a Moveable Type plug-in called BlogTimes which basically graphed a months worth of entries on a bar time-wise. This allows others to see the times when you most often post. I don’t know if there’s any Earth-shattering uses for this, but it is interesting to see patterns in the way I post. You can see the graph on the bottom of the home page or in my archive summary.
I have been busy with a Web project lately, so my release of the code for BlogTimes pMachine had been put on hold. Tonight I had enough time to finish hammering out the little details, and am happy to release it to the eager masses. All 2 of them. If you want to download the code, click here.
Setup is a piece of cake. You don’t need to change any of the code, if you don’t want. Just upload the script to your server, and wherever you want the graph to appear just add the following code:
<img src="blogtimes.php" border="0" alt="BlogTimes pMachine” />
That’s it! I’ve also set up the script to accept variables so you can display information relevant to certain months. You can see my Archive Summary as an example of this. For example, if you want to display posts for January 2002, just use the following:
<img src="blogtimes.php?m=01&y=2002" border="0" alt="BlogTimes pMachine” />
If you want to change the colors or size of the graph, I have commented the places you can change the code in the script.
Let me know if you have any problems or questions. I hope there aren’t too many bugs. I’d also like to see it in use on other sites, so if you have it setup and running, let me know.
Sue from pMachine Hacks correctly pointed out that you’ll also need the GD libraries on your server in order for BlogTimes for pMachine to work. That’s only the most important instruction! I don’t know why I left that out. I must’ve been tired or something.
Great tool and much appreciated! One thing I noticed when using the code in a pMachine template is that “double quotes” mess things up while ‘single quotes’ are fine. I used
Frederik
February 25, 2003
Ok, the problem was I changed the variables into
Frederik
February 25, 2003
This is the Blogtimes-dude again… I browsed your site a little, and I got really interested in your accessability statements. It is for the first time that I see a clear and logical list of all the improvements webmasters can integrate in their pages.
I never trusted css-layouting techniques. They seemed to look differently on every browser and every platform. If someone wants to use css-layouting techniques, they even have to hack certain css-properties in order to render them correctly (see http://www.thenoodleincident.com). So I decided to use tables after all for my page…
But now that I bought the Pro-version of pMachine (yesterday!), I’m planning a new design with multiple blogs. And your page really inspires me!! Tonight I’ll dive into you css-files ![]()
A have a few questions though – do you
On this site, I use pMachine Free, so I hard code the header and footer into each page. On another client’s site, I use pMachine Pro. There I used a header and footer file. You can see that site at www.dequeen.com.
I didn’t have to hack anything so far. This site looks correct in all the browsers I’ve tried. The De Queen site doesn’t look correct in Safari, but I can live with that for right now. Safari is beta, and will work out that bug in the near future.
Sure, you can use icons as links under your entries. I don’t have copyright on it or anything. =]
Chris, you need to mention that this only works if you have the GD libraries installed.
I don’t, and will get that fixed.