Home > AIR, PHP > AIR Badge WordPress plugin

AIR Badge WordPress plugin

April 19th, 2008

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.

 

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 ;)


 

No TweetBacks yet. (Be the first to Tweet this post)

 
Creative Commons License This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.0 Belgium License.

 

Related posts:

  1. WP-ShortStat WordPress plugin
  2. TwitLive AIR application
  3. Moderator AIR application
  4. Adobe Feeds Firefox Search Plugin
  5. iPhone App Reviews – AIR application


 

AIR, PHP

  1. April 19th, 2008 at 19:54 | #1

    Good idea, thank you !

  2. April 21st, 2008 at 10:54 | #2

    Thanks for this Peter

  3. April 22nd, 2008 at 17:06 | #3

    what about the publisher id and the application id ?

  4. April 23rd, 2008 at 20:48 | #4

    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.

  5. May 5th, 2008 at 23:45 | #5

    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

  6. May 5th, 2008 at 23:50 | #6

    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.

  7. May 6th, 2008 at 17:16 | #7

    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!

  8. August 16th, 2008 at 14:28 | #8

    Your the man!
    Thanks for this alot!!!

    -Jonnie

  9. August 29th, 2008 at 16:43 | #9

    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.

  10. October 17th, 2008 at 12:58 | #10

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

  11. November 5th, 2008 at 17:22 | #11

    Awesome plug-in. Works exactly as advertised.

  12. November 26th, 2008 at 15:21 | #12

    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 !!!

  13. November 26th, 2008 at 15:26 | #13

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

  14. November 29th, 2008 at 18:35 | #14

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

  1. April 19th, 2008 at 15:50 | #1
  2. April 19th, 2008 at 18:12 | #2
  3. April 25th, 2008 at 19:11 | #3
  4. April 28th, 2008 at 06:04 | #4
  5. May 1st, 2008 at 20:23 | #5
  6. May 6th, 2008 at 17:22 | #6
  7. May 28th, 2008 at 08:56 | #7
  8. June 5th, 2008 at 13:44 | #8
  9. June 10th, 2008 at 14:42 | #9
  10. June 18th, 2008 at 06:10 | #10
  11. July 10th, 2008 at 17:45 | #11
  12. August 16th, 2008 at 18:09 | #12
  13. November 5th, 2008 at 17:20 | #13
  14. November 23rd, 2008 at 13:58 | #14
Comments are closed.
"Schöne Harz Ferienwohnung im Herzen von Deutschland. Weitere Ferienwohnungen im Harz finden Sie auf der angegebenen Urlaubsseite.
Falls Sie einen Partner für erfolgreiche Suchmaschinenoptimierung suchen, sind Sie bei Bullz-Eye an der richtigen Adresse."