PDA

View Full Version : Xbox Live Gamertag [drop down menu]


original'as
07-18-2009, 10:00 PM
This little template mod adds xBox gamercard to vbulletin profile drop down menu.

Live Demo (http://www.topzone.lt/forumas/655-battlefield-serija-battlefield-heroes-nemokamas-uaidimas-sishsti-download.html?langid=1) (works only if loged in)

https://vborg.vbsupport.ru/external/2009/07/29.jpg

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.
Save.

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 postbit_legacy (maybe postbit, if user details is above post)

Find:
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>

Add below:
<!--- / Xbox gamertag --->
<if condition="$post['fieldXX']"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/$post[fieldXX].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe></td></tr></if>
<!--- / End Xbox gamertag --->
Replace XX with the gamertag field number.

original'as
07-19-2009, 06:34 PM
Thread moved to https://vborg.vbsupport.ru/showthread.php?t=219102