WordPress.org

Ready to get started?Download WordPress

Forums

google toolbar button plugin? (18 posts)

  1. buskerdog
    Member
    Posted 7 years ago #

    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?

  2. golddave
    Member
    Posted 7 years ago #

    Do you mean a button that will reside in the Google toolbar that will pull up an RSS feed of your blog?

  3. buskerdog
    Member
    Posted 7 years ago #

    Yeah, that's what I mean.

  4. golddave
    Member
    Posted 7 years ago #

    I don't think it exists yet but I can do it. I'll let you know when I have something.

  5. buskerdog
    Member
    Posted 7 years ago #

    Wow! Cool. Thanks!

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Hmm.. This has some interesting potential. Not only can you create a button dropdown that gets updated via an RSS feed, but you can change the feed to have icons for each entry, descriptions for the hover, even allow them to do searches on the site via the toolbar.

    Could be a neat plugin.

  7. golddave
    Member
    Posted 7 years ago #

    I have a very basic plugin now that generates the needed XML file. I'll have more on this tomorrow. Stay tuned.

  8. golddave
    Member
    Posted 7 years ago #

    There is a working version of this plugin available now at my website:
    http://nothing.golddave.com/?page_id=78

    That page has instructions for how to use it. If you have any questions, comments or suggestions either put them here or post a comment there.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    The link to the ZIP file on your page does not work.

  10. golddave
    Member
    Posted 7 years ago #

    Sorry about that. It's fixed now. Please try again.

  11. buskerdog
    Member
    Posted 7 years ago #

    I'm trying to get it going. The function file_put_contents seems to already be taken by something else. I tried changing it to file_put_contents_toolbar but I'm having trouble regardless and I'm not sure if that's the cause. Also, do you know what could be done to put a custom image in there somewhere? I remeber having to use this site to translate the image into code in order to include it in the MT plugin: http://www.motobit.com/util/base64-decoder-encoder.asp

    Regardless, thanks a lot for developing this!

    Oh yeah, here's where I have it installed (it's the little Add to google toolbar link near the top. The one below is for the old toolbar. http://tinyurl.com/yklcge

    EDIT: I manually added my logo to the plugin. You might want to add a link to the image processing site I posted in your site!

  12. buskerdog
    Member
    Posted 7 years ago #

    Got it working. I swapped out wpurl with url in the plugin everywhere I saw <?php bloginfo('wpurl') That could just be because of how my blog is set up. I also put the logo in manually. Works great! Thanks!

  13. golddave
    Member
    Posted 7 years ago #

    What version of WordPress are you using?

    I first wanted to have the most basic thing working and then add the extras. I plan on adding some options when I have something stable enough to build on (in other words when I have enough feedback from people that what I have now is reliable). Images will be a bit tricky because they need to be in base64 format. I'd like to add that as part of the plugin so if anybody has any ideas of on how to integrate base64 conversion into the plugin I'll be grateful.

  14. buskerdog
    Member
    Posted 7 years ago #

    I'm still on 2.0.3 for that site. The only change I made to get it to work was to change wpurl to url. I also changed the name of the file to toolber_button.xml in a failed attempt to get my old button to automatically pick up on the new one (it would need to appear in the root directory but appears in wp-content) and adding the base64 image in was purely aesthetic. But if you follow the tinyurl link above you'll find that it works!

  15. golddave
    Member
    Posted 7 years ago #

    I followed that URL and know it works but it doesn't give me any information on how. That's ok, though.

    As you noticed, I defaulted the directory of the XML file to wp-content. I plan on adding an option to change the directory the file can be found in. I also plan an option to change the default file name (currently is the name of your blog with spaces replaced by underscores).

    I made 2 changes to the plugin. One was to integrate your change to use url instead of wpurl. The other was to check to see if the XML file already exists before it runs the code to generate it. (Previously it was regenerating the file every time a page was loaded. The file check will cut down on page load time.) Both of these changes can be found in version 0.2 currently available at my website (http://nothing.golddave.com/?page_id=78).

  16. buskerdog
    Member
    Posted 7 years ago #

    You're the man. This should become a hot plugin since every WP user can find a use in it.

  17. golddave
    Member
    Posted 7 years ago #

    I'm working on image support now. This entails adding an options page with several image related options. The actual encoding of the image and adding it to the xml is not so tough.

  18. golddave
    Member
    Posted 7 years ago #

    Today I added the following features:
    1 - An options page.
    2 - The ability to change the name of the XML file. This includes some error checking to be sure that the filename will never be blank and a function that deletes the old XML file in the event that the filename changes (both from the XML and the wp-content directory).
    3 - The ability to upload an image to be used as an icon in the toolbar. This image is optional. The absence of this image will result in the toolbar using a default image. This feature includes a function that base64 encodes the image so it can be added as text to the XML file. If the image is changed (either by changing the URL for the image in the supplied field or leaving the field blank) then the old image is deleted (both from the XML and the wp-content directory).

    I think this plugin has matured enough to be elevated to version 1.0 status. You can download the latest version from my website: http://nothing.golddave.com/?page_id=78

Topic Closed

This topic has been closed to new replies.

About this Topic