Shaun Mccran

My digital playground

29
M
A
Y
2010

Xbox 360 Gamer Card App released on RIAforge.org

After Scotch on the Rocks in London I was struck with how many developers are also gamers. It seems there are a lot of us who build applications for people, then go home and relax in front of an Xbox 360 Console.

With that in mind I thought I would wrap up a service I have used in the past. A site, http://www.mygamercard.net/ provides a service where you can generate a graphic of your Xbox 360 account. They call this a Gamer Card, and it is available in a few different formats.

There is an example here

You can download the project here: http://gamercard.riaforge.org/

To add this to your site simply download the CFC from www.riaforge.org (http://gamercard.riaforge.org/), and place it in a directory on your site. Here is a breakdown of the arguments it takes:

Calling the CFC

1. accountName (String)
This is the Xbox 360 account name to use when generating the displayed card.

2. Country (String)
If you want to generate the card in a language other than English you can send in a country here. A full country list is below.

3. Format (String)
There are three different format that the card can be generated in:

1. flash
2. image
3. silverlight

Example

Example:

view plain print about
1<cfset request.gamerCard = createObject('component', 'gamerCard')>
2
3<cfset args['accountName'] = 'Ect0z'>
4<cfset args['country'] = ''>
5<cfset args['format'] = 'flash'>
6
7<cfoutput>#request.gamerCard.getTag(argumentCollection=args)#</cfoutput>

The example here shows the multi format returns Example

Country codes

Send in the full country name, and the service inserts the short code. Leave it blank to default to english.
""-English
CA-Catalan
ZH-Chinese
CS-Czech
DA-Danish
NL-Dutch
FI-Finnish
FR-French
DE-German
EL-Greek
HI-Hindi
HU-Hungarian
GA-Irish Gaelic
IT-Italian
JA-Japanese
KO-Korean
MS-Malay
NB-Norwegian
PL-Polish
PT-Portuguese
RU-Russian
SK-Slovak
ES-Spanish
SV-Swedish
CY-Welsh
TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Back to top