Wordpress Toolbar Plugin and Wordpress Prefixes: A Fix

BandaidFirst of all, that’s an awesome plugin that will allow your visitors to have a look at external links while retaining the ability to comment locally on your blog. Get it!

Unfortunately, if you have modified your Wordpress database prefix, for instance because you are using Wordpress MU or the Virtual Module, the toolbar will fail to display.

Here is my very modest fix that will make it work.

1. Open wordpress-toolbar/toolbar.php

2. Find, near the top of the file:

$resultset = $wpdb->get_results("SELECT * FROM wp_options where option_name in ('wordpress_toolbar_social','wordpress_toolbar_excludedomains','wordpress_toolbar_skin','wordpress_toolbar_custom')");

Replace with:

$resultset = $wpdb->get_results("SELECT * FROM {$wpdb->options} where option_name in ('wordpress_toolbar_social','wordpress_toolbar_excludedomains','wordpress_toolbar_skin','wordpress_toolbar_custom')");

3. That’s it!

Similar Posts:

If you enjoyed this post, make sure you subscribe to my RSS feed!

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

Hey thr,

Thanks for posting this fix, but I was wondering why didn’t you commented this bug on the plugin page :D Anyways I for chance stumbled on your page and shall fix this bug in future releases.

Thanks again,
Abhinav

The reason is very technical: that’s because I’m stupid. I plan on doing things and then I forget. Of course I meant to post a comment, sorry about that.

aah, not a problem. Good thing is I was looking for people who have blogged abt this plugin and i luckily landed here. Main thing is it helped me knowing the problem and since its my first plugin, I expect a lot more infact ;)

plugin that will allow your visitors to have a look at external links while retaining the ability to comment locally on your blog.

i was searching about the pros and cons of google chrome and i landed on your blog..
@abhibnav singh – your webpage doesnt load though i have found the plugin from another source.

@Eve Isk – Might be a one off thing, I was out on vacation and didn’t had any net access. :(

what would be the reasons for this plugin ?, what does it do

Hi,
I was looking for something like this for my blog about cars. This plugin is very useful. Thanks for sharing it with us.

The Plugin is very good. Thanks for the fix. It’s working fine now.

I was looking for a plugin like this. I’m so glad I found this and the fix too. Thanks for sharing.

I’m looking for this thanks for this plugin..

Leave a comment

(required)

(required)