MyBB Community Forums
Xbox Gamercard - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: Xbox Gamercard (/thread-80090.html)



Xbox Gamercard - xHtmlPhP - 2010-10-11

This is pretty much useless but I'm sure someone may find it useful in some way or other, and I'd also like to contribute to the MyBB community in any way possible.

Anyway, go to Admin CP > Config > MyCode and create a new MyCode.

For the regular expression, input the following
\[gamertag=(.*?)\]

And the replacement HTML would be
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="300" height="135">
  <param name="source" value="http://card.mygamercard.net/default.xap" />
  <param name="enableHtmlAccess" value="true" />
  <param name="enableGPUAcceleration" value="true" />
  <param name="minRuntimeVersion" value="3.0.40624.0" />
  <param name="autoUpgrade" value="true" />
  <param name="initParams" value="gamertag=$1,language=" />
  <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
    <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none" />
  </a>
</object>

Or, for a simple one which doesn't require Microsoft Silverlight
<img src="http://card.mygamercard.net/$1.png" />

You'd use it by using the following MyCode
[gamertag=GamertagHere]
Replace 'GamertagHere' with the users Xbox Live Gamertag.

Thanks for reading.


RE: Xbox Gamercard - Marshton - 2010-10-11

Cool, thanks for this share, I'll tell some of my friends about it who have Xbox Forums Smile

Nice Job.


RE: Xbox Gamercard - xHtmlPhP - 2010-10-12

Just to let you know, the Silverlight version does not work on Moonlight which Linux use.


RE: Xbox Gamercard - Bumiayu - 2010-10-18

I dont know what is this? Sory. Can you give me Screen Shoot


RE: Xbox Gamercard - xHtmlPhP - 2010-10-19

(2010-10-18, 02:33 PM)Bumiayu Wrote: I dont know what is this? Sory. Can you give me Screen Shoot

Sure, here you go.

[Image: sncjyf.png]