EMCI_GoodFortune – Unix Fortune Cookie WordPress Plugin
Posted by tim on Jan 31st, 2009
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
- Download the plugin and stick it in your wordpress plugins directory
- Un-zip it. It should create a directory called emci-goodfortune
- Edit the emci-goodfortune/fortunes.txt, or replace it with some cookie jar file you found somewhere
- Active the plugin in wordpress
- 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 */ }