original'as
07-20-2009, 10:00 PM
This little template mod adds xBox gamercard to vbulletin profile drop down menu.
Works with vBulletin 3.8.x now!
Live Demo (http://www.topzone.lt/forumas/2397-asus-eee-pc-1101ha-11-6-colish-asus-eee-pc-seashell.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 (may be postbit, if user details is above post)
Find:
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&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.
Works with vBulletin 3.8.x now!
Live Demo (http://www.topzone.lt/forumas/2397-asus-eee-pc-1101ha-11-6-colish-asus-eee-pc-seashell.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 (may be postbit, if user details is above post)
Find:
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&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.