AIR Badge WordPress plugin
19 04 2008If 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




[...] great dude Peter Elst did a great plug-in for bloggers who uses wordpress to quick install air-badge into their blog posts or side bar [...]
[...] 如果你的电脑上没有安装air支持,它会提示先安装.然后在展示你的air程序. 详情 (No click) | 下载wp-airbadge (No click) Add to del.icio.us cpro_client=’egoldy2008_cpr’; [...]
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.
[...] Wordpress: WordPress › AIR Badge « WordPress Plugins Allows you to easily create an install badge for your AIR applications using the [airbadge] tag in your posts.Created by Peter Elst [...]
[...] it now, using the sweet new AIR plugin for wordpress written by Peter Elst. Please upgrade your Flash PlayerThis is the content that would be shown if the user does not have [...]
[...] More here. Posted In: Adobe AIR, Flash [...]
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!
[...] is a test post of the airbadge Word Press plugin by Peter [...]