Peter Elst

Flash Platform Consultant
  • Home
  • About me
  • Articles
  • Downloads
  • Contact me

AIR Badge WordPress plugin

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


 

« SQLite in Adobe AIR session video MIX Essentials 2008 review »



Actions

  • rss Comments rss
  • trackback Trackback

Informations

  • Date : 19 April 2008
  • Categories : AIR, PHP

13 responses to “AIR Badge WordPress plugin”

19 04 2008
Igor Costa » Blog Archive » AIR Badge for Wordpress blogs (15:50:06) :

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

19 04 2008
egoldy flashblog » AIR Badge WordPress 插件 (18:12:58) :

[...] 如果你的电脑上没有安装air支持,它会提示先安装.然后在展示你的air程序. 详情 (No click) | 下载wp-airbadge (No click) Add to del.icio.us cpro_client=’egoldy2008_cpr’; [...]

19 04 2008
Tek (19:54:18) :

Good idea, thank you !

21 04 2008
Fabianv (10:54:42) :

Thanks for this Peter

22 04 2008
Neo (17:06:07) :

what about the publisher id and the application id ?

23 04 2008
Peter (20:48:35) :

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.

25 04 2008
REDBug, Wordpress and Firing up the Grill (Link share) | Code Cook (19:11:06) :

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

28 04 2008
SWFShot v0.1 Released. Save Images of SWFs Greater Than 2880 Pixels | Visualrinse | Design and Development by Chad Udell (06:04:29) :

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

1 05 2008
eismann-sf » AIR Badge WordPress Plugin (20:23:29) :

[...] More here. Posted In: Adobe AIR, Flash [...]

5 05 2008
Mark (23:45:22) :

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

5 05 2008
Peter (23:50:15) :

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.

6 05 2008
Mark (17:16:10) :

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!

6 05 2008
Monkey Patcher » Blog Archive » AIR Badge plugin test (17:22:15) :

[...] is a test post of the airbadge Word Press plugin by Peter [...]

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>





Training Partners

multimediacollege

SkillsMatter

  • Categories

    • AIR RSS category feed
    • Ajax RSS category feed
    • CSS RSS category feed
    • Eclipse RSS category feed
    • Events RSS category feed
    • Flash RSS category feed
    • Flash Lite RSS category feed
    • Flex RSS category feed
    • Gadgets RSS category feed
    • General RSS category feed
    • JSFL RSS category feed
    • Mac RSS category feed
    • Open Source RSS category feed
    • PHP RSS category feed
    • Podcasts RSS category feed
    • Publications RSS category feed
    • Rants RSS category feed
    • Reviews RSS category feed
    • Thought of the Day RSS category feed
    • Training RSS category feed
    • Video RSS category feed
  • Resources

    • Robert M. Hall
    • Ralf Bokelberg
    • Owen van Dijk
    • Jesse Warden
    • Brajeshwar Oinam
    • Scott Barnes
    • Richard Leggett
    • Aral Balkan
    • Abdul Qabiz
    • Serge Jespers
    • Edwin van Rijkom
    • Marco Casario
    • Simon Barber
    • Mario Klingemann
    • André Michelle
    • Jon Williams
    • Keith Peters
    • Josh Tynjala
    • Ted Patrick
    • Rich Tretola

     
     

    Adobe Community Expert

    See my profile on LinkedIn



    Harz Ferienwohnung Suchmaschinenoptimierung Geschenkideen Harz Ferienwohnung Pagerank Webkatalog Webhosting