2009
Jan 31

When I created this blog, some time ago, I wanted to have a rotating tagline like you see under the title.  I wanted something simple, so I hacked together a little wordpress plugin to do it.  Since I spend a lot of time in a unix environment, I figured “why not make it eat yummy fortune-cookie files?”  That way, if others wanted to use it, they could use any number of publicly available cookie jar databases.

Six months after writing the thing, I cleaned it up a bit, and decided to publish it.

Installation

  1. Download the plugin and stick it in your wordpress plugins directory
  2. Un-zip it.  It should create a directory called emci-goodfortune
  3. Edit the emci-goodfortune/fortunes.txt, or replace it with some cookie jar file you found somewhere
  4. Active the plugin in wordpress
  5. Add the following code somewhere in your template file:
    if (function_exists('emci_goodfortune')) { emci_goodfortune(); }

And there you go!

Styling The Output

Simply create a style rule for selector:

span.emci-fortune {
   /* Your style rules go here */
}

-->