AIR Badge WordPress plugin

If you want to distribute AIR applications the install badge is definitely the best way to go. The one problem I had with it is that its a pain to prepare and embed on your blog.

To help remedy this I started working on this AIR Badge plugin last night, it allows you to simply use an [airbadge] tag and a couple of arguments in your blog post which will then be replaced by the AIR install badge.

 

Example

[airbadge] application name, full URL to .air file, application version, image.jpg [/airbadge]

[airbadge]Contact Manager, 

http://www.peterelst.com/downloads/sqlite/sqlite-contactmanager.air,

1,http://www.peterelst.com/blog/wp-content/uploads/2008/04/contactmanager.jpg[/airbadge]

 

Result

Please upgrade your Flash Player


 

Options page

The plugin options page allows you to specify whether or not you want to embed the SWFObject javascript (only disable this if you already have it included in your WordPress template elsewhere).

AIR Badge options page

 

Install

The AIR Badge plugin is compatible with WordPress 2.2 and higher (version 2.5 recommended). To install use the following steps:

  1. Download AIR Badge plugin

  2. Unzip air-badge.zip
  3. Upload the air-badge folder to wp-content/plugins
  4. Activate the plugin

You can now start using the [airbadge] syntax in your blog posts to create an AIR badge for your applications.

Download here (version 0.6)

Note: this plugin uses the beta AIR Badge available from labs.adobe.com and includes SWFObject by Geoff Stearns (http://code.google.com/p/swfobject/).

 

Future improvements

I plan to add support in the AIR badge plugin options page for setting badge colors, publisher settings and other default properties for the badge. For hosting I suggest you find a PHP hosting provider that is suitable for your web development projects.

 

Support

You can support this project by helping to test it on your WordPress install and reporting any bugs or feature requests.

The code is released under a GPL license, donations are welcome if you find this plugin useful and want to sponsor my caffeine addiction ;)


 

28 Comments

  • Pingback: Igor Costa » Blog Archive » AIR Badge for Wordpress blogs

  • Pingback: egoldy flashblog » AIR Badge WordPress 插件

  • April 19, 2008 - 7:54 pm | Permalink

    Good idea, thank you !

  • April 21, 2008 - 10:54 am | Permalink

    Thanks for this Peter

  • April 22, 2008 - 5:06 pm | Permalink

    what about the publisher id and the application id ?

  • April 23, 2008 - 8:48 pm | Permalink

    I’ll support publisher and application id in an update to the plugin — still thinking how best to implement it without the syntax becoming too complex.

  • Pingback: REDBug, Wordpress and Firing up the Grill (Link share) | Code Cook

  • Pingback: SWFShot v0.1 Released. Save Images of SWFs Greater Than 2880 Pixels | Visualrinse | Design and Development by Chad Udell

  • Pingback: eismann-sf » AIR Badge WordPress Plugin

  • May 5, 2008 - 11:45 pm | Permalink

    Peter,
    Thanks for this. However, I can’t seem to get mine to work in WordPress 2.5.1. I copied and pasted the example code you have above, but that’s all that appears in my blog post.
    I am kinda new to WordPress, so I may be doing something wrong, but I have other plugins working.

    Any help would be great,
    Mark

  • May 5, 2008 - 11:50 pm | Permalink

    Thanks for the feedback Mark — did you download the latest version, there were some issues with the file path in the original release that I only fixed last weekend.

    What you need to do is download the zip file, extract is and put the air-badge folder as a subfolder in the /wp-content/plugins/ folder.

    http://wordpress.org/extend/plugins/air-badge/

    Then when you go to your WordPress admin you can activate the plugin, and if you use the [airbadge] syntax it should show up alright. If it doesn’t work for you feel free to contact me with further details and I’ll see whats happening.

  • May 6, 2008 - 5:16 pm | Permalink

    Right, I figured it out using RegExr, a cool little AIR Regular Expressions tester.

    Apparently, the code snippet you have above has carriage returns in it and the regular expression you’re using to parse the post doesn’t take carriage returns into account.

    When I put everything on the same line, it worked like a champ!

    Thanks for this plugin Peter!

  • Pingback: Monkey Patcher » Blog Archive » AIR Badge plugin test

  • Pingback: Peter Elst » 2M08 in review

  • Pingback: Sönke Rohde » on AIR tour Berlin links

  • Pingback: Enrique Duvós - RIA Excellence in Europe » Blog Archive » Adding an AIR Badge installer to your WP Blog

  • Pingback: WebService //Flash :: “AIR Badge” - полезный плагин для Wordpress

  • Pingback: Peter Elst » TwitLive AIR application

  • August 16, 2008 - 2:28 pm | Permalink

    Your the man!
    Thanks for this alot!!!

    -Jonnie

  • Pingback: Simple Number Converter | nothing yet | jason madsen

  • August 29, 2008 - 4:43 pm | Permalink

    Hi, I am using your plugin. Some people reported me that, after installing Flash Player beta 10, the badge asks to update their player.
    How can I change the code to include the check of Player 10beta?

    Thanks.

  • October 17, 2008 - 12:58 pm | Permalink

    Peter, Thanks for this. I will definitely give it a test

  • Pingback: Bryan Bartow

  • November 5, 2008 - 5:22 pm | Permalink

    Awesome plug-in. Works exactly as advertised.

  • Pingback: » AIR Badge - WordPress Plugins Catalog

  • November 26, 2008 - 3:21 pm | Permalink

    Peter, thanks a lot for your plugin. It work fine but if i use a tag “air” on posts then the plugin doesn’t work !!!

  • November 26, 2008 - 3:26 pm | Permalink

    wow, strange bug – thanks for reporting that Ludo! I’ll get that problem fixed asap

  • November 29, 2008 - 6:35 pm | Permalink

    Your the man!
    Thanks for this alot!!!
    Santo

  • Comments are closed.

    .