Wordpress Toolbar Plugin and Wordpress Prefixes: A Fix
First 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')"); |
Similar Posts:
- Wordpress FLV Player Plugin v2.0
- Help Blog Editors Reliably Discover Your API
- Flv Player
- Fixing permissions after a Wordpress prefix change
- Add your Google App account to Thunderbird 3 beta 4
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
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.
Hi,
I was looking for something like this for my blog about cars. This plugin is very useful. Thanks for sharing it with us.







February 16, 2009 @ 9:54 pm
Hey thr,
Thanks for posting this fix, but I was wondering why didn’t you commented this bug on the plugin page
Anyways I for chance stumbled on your page and shall fix this bug in future releases.
Thanks again,
Abhinav