With Xbox Live, you can get yourself a snazzy little “gamercard” for your website/whatnot by inserting a little html. XFire has the same kindof thing with their “miniprofiles”, but i like the look of the live version better, so i did a little hackery.
XBox Live version | My Xfire version |
---|
Specifics after the jump! bonus points if you know what “famous person” HiroProtagonist is. :p
Examples
XBox Live Gamercard <iframe src="http://gamercard.xbox.com/tycho.card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
|
|
XFire Standard Gamercard<iframe src="http://customsigs.free.fr/tools/xfire_card.php?username=gardnerjr" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
|
|
XFire Custom Custom Avatar, custom link for avatar, silver style <iframe src="http://customsigs.free.fr/tools/xfire_card.php?username=gardnerjr&avatar=http%3A%2F%2Fblog.my-is300.com%2Fimages%2Fslick.jpg&style=silver&link=http%3A%2F%2Fblog.my-is300.com%2F" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
|
Parameters
script:xfire_card.php
.
See CXS Custom Xfire Sigs for the official source and README
username
– xfire username
optional:
style
– either “gold” (default) or “silver”. this goes with the gold/silver status of live members and changes the color of the top.avatar
– url to image to use as avatar. note that this is in a url, so special chars should be url encoded.
the code sets this image to 64×64, so smaller images are scaled up by the browser(like your xfire standard avatar, game icons) or large images scaled down to fit.css
– url to cascading style sheet to use. by default, uses microsoft’s standard gamercard css. again note urlencodinglink
– url to where you want clicks on your avatar to go.
Possible Improvements
- Make the script output as an image. Many people have complained about live’s iframe gamercard,
and many online solutions exist to get image versions or flash versions to embed into websites, sigs.
This is probably pretty easy, as the background is an image in the css, all that is required is drawing the text parts.
Images remove most hyperlinking, so that’s a downside there. I think thats why the flash versions exist. - Make more things clickable. right now clicking goes to your xfire profile, but externalizing the link would be trivial.
- get xfire to publish this stuff through xml or soap or something so we don’t have to parse html. thats
just wasting bandwidth for us AND for xfire. - get xfire to use bigger images for games. the 16×16’s are getting scaled up and look goofy.
alternately, write a small script in php/etc that would smooth scale on the fly and cached the scaled versions
alternately, get bigger/custom images for all the games, and use those instead of xfire’s
Leave a Reply