« MTCountdown | Main | Only a few days left until the first public release »

June 23, 2003

How Long Has Your Blog Been Up?

With the latest release of my Countdown plugin, I had a neat idea that I figured I'd share with everyone.

So, here's a quick way to display how long your blog has been around, with the Countdown and Entry plugins:

This blog has been up for <MTEntry id="1">
<MTCountup date="[MTEntryDate format='%Y-%m-%d %H:%M:%S']">
<MTCountupIfYears>
<MTCountupYears> years, 
</MTCountupIfYears>
<MTCountupIfWeeks>
<MTCountupWeeks> weeks, 
</MTCountupIfWeeks>
<MTCountupIfDays>
<MTCountupDays> days,
</MTCountupIfDays>
<MTCountupIfMinutes>
<MTCountupMinutes> minutes,
</MTCountupIfMinutes>
<MTCountupIfSeconds>
<MTCountupSeconds> seconds
</MTCountupIfSeconds>
</MTCountup>
</MTEntry>

Obviously you do not have to use the Entry plugin, you just need a way to select the first entry in your blog. I recall seeing a way to do it with the SQL plugin, but I think this way just looks cleaner. Or maybe I am just weird. :)

It could also be trimmed down quite a bit too. You do not have to use all the MTCountupIf tags like I did.

Posted by rayners at June 23, 2003 10:08 PM

Trackback Pings

TrackBack URL for this entry:
http://mt.rayners.org/mt-tb.cgi/219

Listed below are links to weblogs that reference How Long Has Your Blog Been Up?:

» Front-end and Back-end Changes from Procrastination
There have been a lot of changes here recently, most of them on the back-end. Most of this work was related to having a bilingual (English and Urdu) blog along with MathML equations. This required valid XHTML 1.1 and serving... [Read More]

Tracked on February 11, 2005 09:25 AM

» Uptime feature for Naturelich blog from Naturelich
Thanks to the Countdown plugin for Movable Type this blog now features an uptime statistic on the sidebar.... [Read More]

Tracked on February 18, 2005 07:45 PM

» David Raynes: Countdown Plugin: How Long Has Your Blog Been Up? from Tutorials
David Raynes: How Long Has Your Blog Been Up?... [Read More]

Tracked on April 11, 2005 09:47 PM

Comments

this is a great plugin!! is there any way to put months in there as well?

Posted by: liz at January 7, 2004 04:57 PM

where is MTCountupIfHours?

Posted by: iced glare at March 14, 2004 02:11 AM

Post a comment




Remember Me?

(you may use HTML tags for style)