Google Toolbar Button Plugin
A recent post in the the WordPress Support forums read as follows:
I can’t finda plugin that creates a google toolbar button and keeps it up to date. I remember one from Movable Type that used atom.xml to keep the button up to date. What’s the WP version?
Look no further. The plugin you wished for is here. The Google Toolbar Button plugin gives you a link in your sidebar (or wherever you want it in your theme) that installs a button to the google toolbar. The button give the ability to monitor the RSS feed of your blog from the Google Toolbar. It also adds your blog to the list of possible places to search when running a search from the Google Toolbar.
This plugin has been tested on WordPress 2.0.5 but should work on version 1.5 and higher. It also support any version of the Google Toolbar that supports custom buttons. (At of this writing only the IE version supports this feature. Firefox does not.)
To install the Google Toolbar Button plugin, follow these steps:
- Upload the googletoolbar.php to your WordPress plugins directory.
- Activate the plugin from your admin interface.
How to use the plugin
To use the plugin simply put the following code in the place you want the link to appear:
< ?php if(function_exists(googletoolbar)) : googletoolbar(link text); endif; ?>
Replace link text with the words you want to appear as your link. For example, if you want your link to read “Add to Google Toolbar” you would put in the following:
< ?php if(function_exists(googletoolbar)) : googletoolbar('Add to Google Toolbar'); endif; ?>
A working examples of this can be seen in the sidebar item title “Google Toolbar Icon Link”.
An options page allows you to change the name of the XML file that is generated with the toolbar settings. The options page also allows you to upload an image that will be used as the icon in the toolbar. (If there is no image then the toolbar will use a default image.)
Download Current Version
Google Toolbar Button Plugin 1.2
- v1.2 – Critical bug in XML generation fixed.
- v1.1 – Widgetized.
- v1.0 – Added options page.
Added ability to change the XML filename.
Added the ability to include an image file as the icon that will be displayed in the toolbar.
- v0.2 – Changed function call from bloginfo(‘wpurl’) to bloginfo(‘url’)for better compatibility.
Added function to check for existence of the XML file to prevent the file from being regenerated every time a page on the blog is accessed and causing unnecessary delays in page load times.
- v0.1 – Initial public release.
If you have any questions, comment or suggestions please leave them in a comment or email them to me.
If you find this plugin useful please feel free to donate a little money to help me offset the costs of this website. Thanks.