Twitter Plugin For Mango Blog

UPDATE: A new version of the twitter plugin is now available for Mango Blog 1.3 Please see the new post for details and download.
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"
Tags: ColdFusion · Freebies · Mango Blog · Plugins
12 comments so far ↓
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...
Please help
Error:
Object of type class java.lang.String cannot be used as an array
components -> plugins -> user
Then go into your blog admin and activate it. Let me know if you need help.
Now I'm having problems with your Sidenote addon - it tells me Plugin cannot be activated. I suspect this is a permissions issue, but I'll keep digging.
it's in the sidebar, bottom right... Heading is I Am....
Line 59 of Handler.cfc should read:
<cfif assetsSettings.path EQ "assets/content/">
...and then it will all work fine.
Mark - if you're going to do a new release anyway to fix this, I'd suggest using the new installation features included in Mango 1.3, as it's a much safer way of doing it now - less susceptible to copy/paste errors!
Leave a Comment