Back to vBulletin 3.7 Template Modifications

Xbox Gamercards [NXE enabled]
Mod Version: 2.00, by GamingFusion

This modification is in the archives.
vB Version: 3.7.x Rating: (2 votes - 5.00 average) Installs: 10
Released: 13 Nov 2008 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

About: I made this modification (with help from MyGamercard.net) so that we could have the new gamercard layout done for the New Xbox Experience!

This mod does work with 3.8.x as well!

http://www.gamingfusion.org/showthread.php?p=1#post1: Look at the post and see on the left the new gamercard. If you are unable to see the DEMO, please register an account and you should be able to see the updated code.

Step 1: Add a new Profile Field with the following options:

* Single-Line Text Box
* Title: Gamertag
* Description: Enter your Xbox Live Gamertag here.
* Max length of allowed user input: 15
* Field Length: 25
* Private Field: No
* Field Searchable on Members List: Yes
* Show on Members List: Your choice
* Which page displays this option? Edit Your Details

Remember the Field ID.

Step 2A *required*: Modify the Postbit_legacy in your template:

1. Admin CP -> Styles & Templates -> Postbit Templates ->
postbit_legacy

Find

Code:
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

After this add:

Code:
<if condition="$post['field#']">
<div id="gamertagmenu_$post[postid]"><a href="#"><b>Xbox LIVE</a>&nbsp;<img src="http://YOURSITEHERE/images/misc/menu_open.gif"></b>
<script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://card.mygamercard.net/nxe/$post[field#].png" scrolling="no" frameBorder="0">$post[field#]</iframe> </div>
</if>
Replace the $post[field#] with your field ID you used for your gamertag! Change "YOURSITEHERE" with your URL to this location!

Step 2B: Thanks to Distance! Do you wanna restrict this code to certain usergroups only? You can... just put this before the <if condition> code:

Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"><if condition="$post['field#']">
<div id="gamertagmenu_$post[postid]"><a href="#"><b>Xbox LIVE</a>&nbsp;<img src="http://YOURSITEHERE/images/misc/menu_open.gif"></b>
<script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://card.mygamercard.net/nxe/$post[field#].png" scrolling="no" frameBorder="0">$post[field#]</iframe> </div>
</if></if>
Replace the $post[field#] with your field ID you used for your gamertag! Change "YOURSITEHERE" with your URL to this location! Also, replace X, Y, Z with the Usergroup IDs (can be found in Usergroup Manager in your AdminCP)

Step 3: Go to Edit Your Details to add your gamertag to your profile.

Step 4: You're done! Your gamercard will work now and mini avatar faces will start working when you get the New Xbox Experience on your dashboard!

FAQ

How do I know if the Avatar System is actually working? It's only showing a silhouette.

If other users are having the avatar working for them, it means it's working correctly. You just don't have the new dashboard -OR- your privacy settings are enabled on Xbox LIVE.

Enjoy the MOD!
Any questions? Leave them here or ask me on http://www.gamingfusion.org!

Download

No files for download.

Similar Mods

.htaccess Hack für den Adminbereich für Version 2.2.4 - German Version vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024