Accessibility Navigation

Twitter Plugin For Mango Blog

Twitter, the popular micro blogging social phenomenon is taking the blogosphere by storm. I felt Mango Blog needed to keep up with the times. I was also working on a new theme that required a twitter sidebar widget. This meant I had to force myself to learn about the plugin system for mango blog. I was about to throw in the towel, call it quits and cry my eyes out then all of a sudden it started to "click". Within the next hour or so I fixed my plugin and got it working as intended. Hooray!

Features

I tried to make it as flexible as possible. Adding a few extra hooks for future styling needs.  While I was at it. I added a custom javascript that automatically links @Usernames as well as hyperlinks in the tweet. Something the original twitter badge does not do.

Configuration Settings

I tried to make the plugin settings functional as well for future proofing the plugin. I added the ability to customize the H2 text that appears in the sidebar. Or you can choose not to show any heading at all by leaving the field blank.

Additionally, I added a location selector for the follow me hyperlink. There are three settings available: None for do not show a link. Below for displaying the traditional link below the posts, or Above if you want to link to a twitter logo or other graphic.

Lastly, I added the ability to specify the number of posts to show at a time.

Download Plugin

So here is it! My very first mango blog plugin! Since this is my first plugin, I would really appreciate your feedback, comments or suggestions.

Custom Tag Option

As a side note, I also have a custom tag version of this plugin. It's not as good as the plugin, but sometimes a theme might require something unique that a sidebar plugin cannot provide.

Thank You

Thanks to Laura for advising me on pod enabeling this plugin, and also for writing a portion of the installer script so that it's "Mango Certified"

4 responses to “Twitter Plugin For Mango Blog”

  1. On Oct 14, 2008 at 11:15 AM - Seb Duggan Said:
    Hey Mark,

    Finally redesigned my site, and your Twitter plugin is part of it...

    Works fine, except in IE6 (yes, I know, but I thought I'd better test it) - which for some reason marks all tweets as having been posted in the last minute.

    Not a show-stopper - to be honest, anyone using IE6 deserves all they get - but I thought you might like to know...
  2. On Oct 15, 2008 at 8:42 PM - Mark Aplet Said:
    @seb Glad to hear that someone is using my plugin! That's awesome! IE6 is acting wonkey? Imagine that? haha. I will have to run some tests on it. I have to admit that I did not test it on IE6. I'm sort of "over it" but I should still support it for plugins that I create. That being said, I have an upgraded twitter coming soon that supports cached tweet's. So when I roll it out, I will hopefully have a fix for IE6. Thanks for alerting me to the issue.
  3. On Oct 28, 2008 at 4:39 PM - johngag Said:
    I got this error and cant get it to go back

    Please help

    Error:
    Object of type class java.lang.String cannot be used as an array
  4. On Nov 11, 2008 at 11:30 AM - johngag Said:
    Works great Mark! Keep up the sweet work

Leave a comment