PDA

View Full Version : Xbox Live GamerTag details in Profile


syrus.xl
21 Dec 2005, 17:44
With the release of the Xbox 360 I thought this would look nice if you run a Xbox related forum. It takes the persons GamerTag card from Xbox.com and feeds the details of games played, icon selected and displays their GamerTag into their posts with links to their stats in games played.

Modifications:
1 extra Field
1 Template modification

Add New Field:
Go to AdminCP -> User Profile Fields -> Add New User Profile Field
Profile Field Type: Single-Line Text Box
Title: Xbox GamerTag
Description: Please enter your GamerTag here.
Field Required: You can select here if you wish to have GamerTags required upon registration or not.
Click Save.

Note the field ID, which you will need in the template code.

Template Modification:
Go to AdminCP -> Styles & Templates -> Style Manager
Select the Style you wish to edit. In the dropdown menu select Edit Templates
Find Postbit Templates - edit either postbit or postbit_legacy

Find:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]

Add this below:
<!-- / Xbox Card Hack -->
<if condition="$post['field_XX']">
<iframe src="http://gamercard.xbox.com/$post[field_XX].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</if>
<!-- / End Xbox Card Hack -->

When you create the new field make a note of the field ID you will need to substitute the _XX with the GamerTag field ID number.

Nearly finished... Now just Edit your Profile and enter your GamerTag! :)

Screenshot attached.

Tony G
22 Dec 2005, 10:07
Thanks for sharing your mod. Could you also attach your instructions in a .txt file? Thanks.

ggiersdorf
22 Dec 2005, 13:25
Question is the Gamertag show ALL the time or is the Field Clickable and expands?

syrus.xl
22 Dec 2005, 14:49
Question is the Gamertag show ALL the time or is the Field Clickable and expands?

The GamerTag card will show all the time with the settings I have listed. It uses an iframe to display the data which isn't collapsible.

XFSImperial
23 Dec 2005, 20:10
Thanks, this will be quite handy
*Install*

PJSkiboy
29 Dec 2005, 06:44
Awesome. Thanks for the code. I had been trying to do this on my own, but wasn't getting the syntax just right.

Thanks a bunch.

ChaoticMunky
30 Dec 2005, 00:33
Okay, I'm having problems with this hack. With the help of one of my other Administrators, we were able to get the gamercard to display properly. The problem is, now when you go to click a poster's forum name (not their gamertag), it doesn't do the drop down menu anymore so you can view their profile or any of that. I'm using vBulletin 3.56.2.

Anyone know how to solve this? If you want to view what it's doing, I left it up on my forums (http://www.xboxcell.com/forums/index.php).

GamerJunk.net
01 Jan 2006, 22:00
I wanna find a way to display online status for xbox live.

Wired1
01 Jan 2006, 22:18
I wanna find a way to display online status for xbox live.
Unless Microsoft releases that info on their site, you can't do it.

syrus.xl
01 Jan 2006, 22:31
That information is only available if you are registered and signed in to Xbox.com - so at the moment 'Wired1' is correct. It would need to be made publically available.

xug
14 Jan 2006, 19:41
What A Rip :D

Look what is posted at Movember 1, 2005 by my admin which we had running first of all Xbox Fan Sites:

http://www.vbulletin.org/forum/showthread.php?s=&threadid=99867

Just plain cheap!!

Wrote Gamertag 'XxH1TM4N FU51ON' down future reference.

Tony G
15 Jan 2006, 01:23
I have to agree with xug, this mod seems to be exactly what the mod xug linked to does, even with similar code.

I won't close this yet but if you can give me a reason how this differs enough from the other mod, I will leave it open.

syrus.xl
18 Jan 2006, 20:52
I have to agree with xug, this mod seems to be exactly what the mod xug linked to does, even with similar code.

I won't close this yet but if you can give me a reason how this differs enough from the other mod, I will leave it open.

Sorry I didn't see that thread when I did a search on here. I seen the mod first on an Invision Board, so I thought I'd make one for vBulletin.

The actual code is only slightly different because a majority of the iframe code is on xbox.com for anyone to use. TBH, I'm more into ActionScripting in Flash and PHP.

xug: That gamertag is my son's - I don't play on Xbox Live!

Again sorry for any confusion!

curry684
13 Feb 2006, 12:45
Actually this thread has better Google PageRank than the other one ;)

Implemented a simple derived version at http://forum.xboxic.com :)

xug
18 Mar 2006, 21:45
/\ Look we are all posting here, and a better ranking doesn't make this ripoff legal.

But we are not that worried about it, it's just the idea and we moved on to our own live generated cards as XUG is member of the Xbox Community Development Program which gives us more oppertunities.

Enjoy your cards.

Oo Drizzle oO
21 Jun 2006, 05:45
what is the field ID number????

Wired1
23 Jun 2006, 03:50
Dude, read the instructions:

Add New Field:
Go to AdminCP -> User Profile Fields -> Add New User Profile Field
Profile Field Type: Single-Line Text Box
Title: Xbox GamerTag
Description: Please enter your GamerTag here.
Field Required: You can select here if you wish to have GamerTags required upon registration or not.
Click Save.

Note the field ID, which you will need in the template code.

Oo Drizzle oO
23 Jun 2006, 13:11
Dude it didnt give me no field ID or anything. Is there some ways somebody could take a screen shot because I really dont see it.

Wired1
23 Jun 2006, 19:11
Under USER PROFILE FIELDS there will be a view or edit fields option. When you see them in a table, there's a column for field ID.

east147
24 Jun 2006, 08:56
Anyone fancy coding this custom PHP script in:

http://www.consti.de/external/gamercard/

Skeoch
23 Aug 2006, 08:43
This doesnt work for me, could it be because im using 3.6.0?

east147
19 Sep 2006, 10:03
Looks like they have added a new viewing option for this in the User Profile Field called: Display Page in 3.6.XXX

Any one have a fix?

Minha
12 Feb 2007, 19:10
It works...but it's too big. Thx at all.

syrus.xl
12 Feb 2007, 21:07
Looks like they have added a new viewing option for this in the User Profile Field called: Display Page in 3.6.XXX

Any one have a fix?

Hi east147, What do you mean? I can convert this to work with 3.6 - I have done so on a few boards, but never released it on here.

I was going to re-design the css layout for the whole box, so its called in differently and has a custom display.

MP1
13 May 2007, 10:08
Great JOB! It works, it just dosnet work with my forum, if there was a way to make it smaller it would be fine but it is way to big.

kes
06 Jan 2008, 10:59
Ive got vB version 3.6.8

This mod is not working for me, ive changed the _xx to _5 but all its displaying is my xbox name, not the actual gamertag image ????

should the _xx be 5 ??? as this is the number ID for the gamertag, or should it be _05 ?
Ive installed it all in the correct places, still nothing

no matter - fixed it now

Kez

DNG
11 Jun 2009, 13:51
i have try this mod on ver. 3.8.2 but it didnt work :S

DNG
11 Jun 2009, 23:24
i have try this mod on ver. 3.8.2 but it didnt work

egclive
22 Jan 2010, 20:29
is this going to be available for vb 4x?

scottevtv
07 Feb 2010, 04:30
Nice I just used this. Thanks a lot. It's looks great on my site and everyone will love having the ability to see other members gamer cards. Nice work.

gimlot79
16 Nov 2010, 16:28
Is this Hack working for anyone who uses 3.8.6 ???

I did exactly what is described in the Installtext, but it won´t Work :-(
But the"Xbox Live Recent Games in Profile Tab" Hack works fine.....:-(

Mr. Flowers
17 Jan 2011, 06:22
Great stuff! Thanks!