Archive for the 'Journal' Category
WordPress plugin: the_time_modified
This is a really simple WordPress plugin that works in exactly the same way as the_time
except that, rather than returning the time a post was published, it returns the last time it was modified. In every other respect it’s exactly the same as the_time
.
To use it, simply enter the function within the WordPress loop like so:
the_time_modified();
Of course, you can enter arguements within in the parentheses. All the options are exactly the same as for the_time
.
You can download it here.
Appalachian Cabin
Here’s a couple of pictures of an early 19th century log cabin in the Great Smoky Mountains, Tennessee.
Neyland Stadium
This is a panoramic photo of Neyland Stadium, the University of Tennessee‘s 110,000 seat football stadium in Knoxville. The photos were taken during their 2004 game against Alabama. Which they won, though the score escapes me.
Thumb-in-Post Version 0.94
This is a very minor update to my Thumb-in-Post plugin. It corrects a problem that occurs with the Javascript popups in Microsoft Internet Explorer for Windows. Previously the javascript popups didn’t work properly in IE/Win. Otherwise the plugin is exactly the same as before.
The new version can be downloaded here.
The problem wasn’t actually a bug in the plugin but rather it was due to a rather strange behaviour of IE/Win.
In the original javascript code links which should be opened in a popup window were given an attribute rel="popup"
and the dimensions of the image (needed so that a popup of the appropriate size could be generated) were stored in a class
attribute, like so:
<a href="http://www.website.net/Content/picture.jpg" target="_new" rel="popup" class="320x240" >
The javascript routine retrieved the dimensions from the class
attribute using a getAttribute
call. Unfortunately, IE apparently sets the class attribute to null
immediately after it displays an object. Obviously this causes the script to crash.
The solution is to store the dimensions in the name
attribute, like so:
<a href="http://www.website.net/Content/picture.jpg" target="_new" rel="popup" name="320x240" >
In terms of semantic markup, this is probably an abuse of name
, but it does work.