Tagline Rotator plugin v2.0 is now available

NB: If you are having any problems with taglines not rotating after the upgrade, please de-activate and re-activate the plugin. This is due to WordPress no longer calling the activation hook when you upgrade a plugin through the Dashboard.

As is often the case over the holidays, I had a little free time to update my Tagline Rotator plugin, which was in need of some serious cleaning up. Version 2.0 is now available on the WordPress plugin repository, and includes the following improvements:

  • Entire plugin is now class-based and the code is significantly cleaned up and better organized
  • All the MySQL queries that the plugin used are eliminated. Instead of using a separate table, the plugin now stores its data in the wp_options table
  • If you’re upgrading from a previous version, the plugin will pull your current taglines from the table and save them to the wp_options table. It will not delete the old table (something like wp_tagline_rotator), so your old taglines will still be there. Once you’ve confirmed the taglines are working properly, you can safely delete the table. I’ll be adding an option to delete any tables created by the plugin thru the admin dashboard in a future version.

As always, if you encounter any problems or have any suggestions, please leave a comment on the plugin’s homepage.

StackOverflow

Sponsored Links

Leave A Reply

Comments

PerfectCr (Dec 27, 2010)

Hello! I just upgraded to the newest version of your plugin, but all my taglines are gone :( How do I recover them without having to retype them all? I am on WP 3.03. Can I recover them from a file in the DB somewhere? Thanks! Great plugin BTW!

PerfectCr (Dec 27, 2010)

Also, anytime there is a apostrophe in a word there is a forward slash ("/") added into the tagline. Also, cannot delete taglines now from the settings screen.

PerfectCr (Dec 27, 2010)

Ok so I uninstalled/reinstalled and now it DID pull my quotes in, but the issue still remains with the / being added to words with an apostrophe in them. :( Thanks for any help you can provide!

Special Thanks to a Wordpress Plugin Author | PerfectCr.com (Dec 30, 2010)

[...] this plugin to rotate the quotes from the movie The ‘Burbs in my blog tagline.  He recently updated the plugin to version 2.0.  When I updated to the new version several bugs manifested themselves including [...]

Erica (Jan 08, 2011)

Hey there, yep I'm getting a similar problem after upgrading to 3.0.4 – I do have a mySQL 5 db, and have installed the 2.0 version of tagline rotator. I'm receiving the following error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /FOO/wp-content/plugins/tagline-rotator/tagline-rotator.php on line 34

WordPress throws a fatal error when i try to activate. Any suggestions?

vaskenhauri (Jan 08, 2011)

@Erica,

I had someone else run into the same problem. This error is likely produced by PHP4, which is unable to recognize the __construct() function used in PHP5. The other person who ran into the problem had it go away once they upgraded to PHP5 (which their web host allowed them to do). If you possibly can, I highly recommend upgrading to PHP5, since PHP4 hasn't been patched for security since 2008. However, I am in the process of patching the plugin so it will be backwards-compatible, so if your host doesn't allow you to upgrade your PHP, look for version 2.3 in the very short term.

Erica (Jan 16, 2011)

Worked like a charm! Thanks so much. :)

Zane Selvans (Feb 07, 2011)

I've just been migrating from the Advanced Tagline plugin, which looks like it's derelict now, and I found yours. It looks much better laid out. A couple of things that would be great, if you've got the time, would be the allow each tagline to have an optional URL associated with it, making the taglines into links, if it's there….

vaskenhauri (Feb 07, 2011)

@Zane,

Thanks for making the switch! :)

Let me see what I can do about making that happen.

Chvad (Mar 01, 2011)

Hello,

I've been using your plug in for awhile and its seems that after the upgrade it just doesn't work anymore. On the back end everything looks correct but the taglines just remain static on the site. Any help would be great. Thanks.

vaskenhauri (Mar 05, 2011)

@Chvad,

If you try de-activating and then re-activating the plugin, does that help, or do you get any errors when you try to do so?

WordPress no longer calls the activation hook when you upgrade, so you may need to do the de-activation/activation in order to upgrade your tagline database.

Hope that helps!