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.
[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]
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).

The AIR Badge plugin is compatible with WordPress 2.2 and higher (version 2.5 recommended). To install use the following steps:
- Download AIR Badge plugin
- Unzip air-badge.zip
- Upload the air-badge folder to wp-content/plugins
- 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/).
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.
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
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.0 Belgium License.Related posts:
- WP-ShortStat WordPress plugin
- TwitLive AIR application
- Moderator AIR application
- Adobe Feeds Firefox Search Plugin
- iPhone App Reviews – AIR application


Good idea, thank you !
Thanks for this Peter
what about the publisher id and the application id ?
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.
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
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.
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!
Your the man!
Thanks for this alot!!!
-Jonnie
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.
Peter, Thanks for this. I will definitely give it a test
Awesome plug-in. Works exactly as advertised.
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 !!!
wow, strange bug – thanks for reporting that Ludo! I’ll get that problem fixed asap
Your the man!
Thanks for this alot!!!
Santo