PDA

View Full Version : Profile Enhancements - Add XBOX Gamertag to IM List


WNxWakko
03-03-2007, 10:00 PM
Please remember to click Mark as Installed if you use this modification

XBOX 360 Gamertag Postbit/Profile icon and gamertag popup plugin.

This is my first plugin. The original code was taken from burnist who made an old skype plugin way back in 3.5 beta 4. I did however have to change almost all of it, just used his as a template to guide me in making this one. I hope it is useful to many of you.

I wanted it the same as how the icq/aim/msn/yahoo worked. I saw some other template mods around here where javascripts were included for hover-over. Problem I had with it is I dont like the extra heavy javacode and/or js includes that were required on every page to make those function.

Doesnt use custom profile fields. Creates a new xbox field of its own next to the msn field in the database. This mod is much more server friendly.

When you click the members xbox icon in post or profile it opens up a popup window resized with the gamertag card info in it.

Anyone who would like to show me how to roll these template mods into the hooks, Id be happy to add that in to make this even easier to install.

Time to install 2 minutes.

Download the zip file, Template edit instructions are included in the zip.

Import the product.
Upload the xbox image to images/misc/
Perform the following template edits,

MODIFYPROFILE template
Find:

<td>$vbphrase[skype_name]<br />
<img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" />
<input type="text" class="bginput" name="skype" value="$bbuserinfo[skype]" size="25" maxlength="32" dir="ltr" /></td>
<td>&nbsp;</td>

Replace with:
<td>$vbphrase[skype_name]<br />
<img src="$stylevar[imgdir_misc]/im_skype.gif" alt="" />
<input type="text" class="bginput" name="skype" value="$bbuserinfo[skype]" size="25" maxlength="32" dir="ltr" /></td>
<td>Xbox 360 Gamertag<br />
<img src="$stylevar[imgdir_misc]/im_xbox.gif" alt="" />
<input type="text" class="bginput" name="xbox" value="$bbuserinfo[xbox]" size="25" maxlength="50" /></td>

POSTBIT or POSTBIT_LEGACY template

<if condition="$post[yahooicon]">$post[yahooicon]</if>
Add below or above:
<if condition="$post[showxbox]">$post[xboxicon]</if>


MEMBERINFO template
Find:
<td>$userinfo[yahooicon]</td>
<td><a href="#" dir="ltr" onClick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
Add below:
<td>$userinfo[xboxicon]</td>
<td><a href="#" onclick="openWindow('http://live.xbox.com/member/$userinfo[xbox].card', 210, 145); return

false;">$userinfo[xbox]</a></td>

SCREENSHOT

http://warriornation.net/temp/gamertag.gif

gforce75
05-28-2007, 01:11 AM
Nice hack. Thanks for sharing!

SVTCobraLTD
07-29-2007, 03:46 AM
Any chance of you reworking this to work for myspace instead of the xbox?

SVT

alfieuk
12-19-2007, 06:32 PM
Just installed this and it works a treat, but how come it doesn't show up in the admincp when you are looking at that persons profile?

The msn, yahoo, icq etc etc are there but not XBL Gamertag?

Cheers

dannykilla
02-27-2008, 06:53 PM
Where is MODIFYPROFILE template in the style manager I cant seem to find it?

can anyone tell me which category it is located please?

Thanks
Danny

odeezie
03-18-2008, 06:43 PM
Dannykilla, Modify User Options Templates.


Is there anyway this hack can be set to Use = Yes so the pop-up box is there, but then have it so you only have to enter your tag in the popup box.

Actually, to clarify....

How can we change this mod to act exactly like the https://vborg.vbsupport.ru/external/2011/07/5.gif icon? You simply click the icon, a box pops up, input your gamertag and thats it.

Chris11987
08-21-2008, 09:50 AM
Does this work for 3.7.x?

scottyboydfc
08-26-2008, 12:23 AM
It works but doesn't show up on Profile page.

Bradley_Wint
10-26-2008, 01:55 PM
Does this work for 3.7.x?

Works on 3.7.3 :D

odeezie
12-24-2008, 01:32 AM
It works but doesn't show up on Profile page.

It is working fine for me now. I just had to redo the template edits for the ModifyProfile and MemberInfo templates. For some reason the original edit was still in the postbit. :up:

gearspro
10-26-2009, 02:04 AM
Does this work for 3.8 guys?