On Shire Reckoning… Again

March 3, 2005 by Allyn · 4 Comments 

The strange little box in the sidebar is now fixed.

I’ve written my first WordPress plug-in.

As you can tell, it generates a date in Shire Reckoning. I’ve done this before, but as a BASIC program. Now I’ve rewritten the program in fairly simply .php code.

Interested parties may download the plug-in here.

How does one call the plug-in? I inserted the following code into my sidebar.php file:
<?php shire_reckoning(); ?>

It can take two arguments–’auto’ or ‘now. Now will give you the current date in Shire Reckoning. Auto can be used to replace the_date function with shire_reckoning('auto') in your WordPress loop if you want to have your blog’s dates given in Hobbit terms.

Here’s my main page on Shire Reckoning. :)

Bookmark And Share This Post
[Ask] [Bloglines] [del.icio.us] [Digg] [Facebook] [Fark] [Google] [MySpace] [Reddit] [Sphere] [StumbleUpon] [Technorati] [Twitter] [Windows Live] [Yahoo!] [Email]

About Allyn
Allyn Gibson has written Star Trek short fiction, such as the groundbreaking "Make-Believe" in Star Trek: Constellations (2006) and the mind-blowing Doctor Who short story, "The Spindle of Necessity" in Short Trips: The Quality of Leadership (2008). He is also the writer for a monthly catalog where he gets to indulge himself in comics and pop culture. After hours, he writes fiction, non-fiction, and weird ramblings on his blog about whatever is on his mind. Now a Baltimorean, Allyn roots long-distance for two long-suffering sports teams: the Chicago Cubs and Hibernian FC; closer to home he roots for the "First in war, first in peace, last in the National League" Washington Nationals, because the Nats need all the help (and all the fans) they can get.

Comments

4 Responses to “On Shire Reckoning… Again”
  1. MK says:

    I got to work on my blog! this si a nice plugin specially for LOTR fanatics!

  2. Vkaryl says:

    I as well have this working – the second version which adds “what happened on this day” to the SR date….

    Thanks much, Allyn!

  3. keysi says:

    cool plugin!

  4. MK says:

    is there a chance this will become a widget?

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Comment Spam Protection by WP-SpamFree

Last.fm

Amazon Wishlist

My Amazon.com Wish List

Personality Profile

Click to view my Personality Profile page

Flag Counter

free counters

Choose Opera

Opera, the fastest, most secure, and most beautiful web browser on the planet.