So I've written another plugin for WordPress. This one is nowhere near as groundbreaking as X-Comments but it's something I've wanted for this site for a while and couldn't find anything anyone had already written that did it the exact way I envisioned it. Anyways, here's the skinny…
What Does it Do?
Tagline Randomizer changes the tagline displayed on your site each time the site is accessed. The values used are added by the blogowner from the Options panel of the Administrative Menu.
How Does it Do it?
When Tagline Randomizer is activated, your current tagline is copied to a new textfile in your wp-admin folder called tr_taglines.txt. Then, each time your blog is accessed (more specifically when the 'init' Activity hook is run), Tagline Randomizer reads all available taglines from the text file and randomly selects one to replace the current tagline value in your database. That tagline is then displayed on your blog wherever your template displays such a value.
How Do I Use It?
Easy. Simply copy the tagline_randomizer.php file to your wp-content/plugins folder and Activate the plugin from the Plugins panel of the Administrative Menu. Once you've done that, go to your Options panel and click the new Tagline Randomizer submenu. On that page, you'll have a text box that you can enter as many taglines as you would like. Enter each tagline on a separate line, click the Update Options button, and you're all done! Your visitors will now start seeing a random tagline from your list each time they visit your site.
- Version .99 BETA – Released 2006-03-19
- First release as Beta just to cover my own ass.
- “Refreshing” your browser window does not cause the tagline to change. Not actually a bug but it's worth mentioning.
- For some reason the first time you activate the plugin, your tagline may appear blank. Leave your site and come back to it. Everything should work fine from that point on.
Right now this plugin does exactly what I wanted it to do so I'm not really looking to expand on it, however that may change in the next few weeks, days, hours… you never know. If there is something along these lines you would like to see implemented, add a comment or shoot me an email. I'm always willing to make changes if it will get more people to use one of my plugins. With that said, here are a couple things I could possibly see users wanting
- Ability to accept an RSS feed of quotes/sayings from some Quote/Saying site to be updated automatically
- Preference to showing recently added taglines more often than older ones.
- Seasonal or date triggered taglines to wish your visitors “Happy X-Holiday” or to tell your users it's your own birthday or something.
And Finally, Why Did I Not Use One of the Other Tagline or Quote Thingys
There are two reasons, the first being that I didn't see any plugins that acted in this exact way and this was the way that I wanted it to work. To be honest, I didn't really look very hard or long for such a plugin which brings us to point two. I really just felt like writing my own plugin to do this. So there ya have it! I'm not saying Tagline Randomizer is any better than any of the other tools out there that do similar things, but it does what I want and does it the way I want it to. I hope you find some enjoyment out of it, too.