aim_status_helper Plugin

This plugin has been DEPRECATED. You can find the update here.

For a project I'm working on, I needed to display a user's AIM status. I thought it might be useful, so I extracted it to a plugin.

It's pretty simple to use, just pass in someone's AIM user name.

aim_status('maddox123456')

aim status maddox123456

Optionally, you can toss in the text you want to display.

aim_status('maddox123456', :show_name => 'Jon Maddox')

aim status Jon Maddox

UPDATE 9/21/06 I changed the ON url so it will work through a proxy like OFF url.

Popularity: 3% [?]

You can skip to the end and leave a response. Pinging is currently not allowed.

4 Thoughts

  1. Looks great. Will be giving it a whirl. Does it do any caching of statuses?

  2. No. I didn't really think about caching. Because if it gets cached and the user goes off line, that status is incorrect.

  3. Hi Jon -

    I'd highly recommend you escape the ampersand in the URLS generated by aim_status_helper - this allows documents that use this status helper to validate under the W3C Markup Validator.

    in lib/aim_status_helper.rb, change line 13 to:
    "\"aim #{show_name}"

    Thanks for this awesome plugin!

  4. awesome plugin,

    but if I leave the call to h in, then I get fully escaped output, ie

    "<span class="aim_status"...."

    I am calling aim_status from a view via a helper

    I had to remove the h to get it to work. Is this a security risk somehow?

Share Your Thoughts?

Please excuse my captcha. But the internets require it these days. Comment triage isn’t billable.