The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Xbox Gamercards [NXE enabled] Details »» | |||||||||||||||||||||||||
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! Demo: 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> <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> <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 Gaming Fusion! Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"> Replacing X Y Z with the relative usergroup IDs. Then simply add </if> to the end of the code and you're done. |
#13
|
|||
|
|||
Quote:
|
#14
|
|||
|
|||
can somebody help me witz this mod? id doesnt work on mine seems not to work. i made it like in the instructions (more than once)
here is my code which i pastet in my template - is this correct? PHP Code:
|
#15
|
|||
|
|||
Quote:
That is really weird.. that does look correct. Try this code instead (same location) and tell me if this works for you.. if not let me know. I copied and pasted this from my site so just replace the "field5" with your field for your gamertag. (I also sent this to your PM). I just checked your site... you are using "postbit" try going to vBulletin Options in your admincp and click Style & Language Settings. Change it to legacy and hit Save. Check your forum and see if the gamercard is there now. If it is, great.. if not, try replacing the code above with the code I have provided below (in the same place): Code:
<if condition="$post['field5']"> <div id="gamertagmenu_$post[postid]"><a href="#"><b>Xbox LIVE</a> <img src="http://forum.swisssoldiersclan.ch/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://gamercard.xbox.com/$post[field5].card" scrolling="no" frameBorder="0" height="140" width="204">$post[field5]</iframe> </div> </if> |
#16
|
|||
|
|||
thx - i didn't get a PM from you :s
yeah if the settings are changed to the option you said it works thanks dude - but i got a problem with the size - its pretty warped.... see here: http://forum.swisssoldiersclan.ch/sh...5190#post15190 |
#17
|
|||
|
|||
Quote:
(I know a little German lol so it was pretty easy to pick up on it.. before I realized you wrote it in English as well! HAHA) Quote:
Code:
WIDTH="NUMBER" HEIGHT="NUMBER"> |
#18
|
|||
|
|||
hi i put in the code but immediately get template errors.
i put the code in like this... $post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] --->RIGHT HERE!! after i do it there's two - if - conditions in a row. that is not correct right? </if></if> help please |
#19
|
|||
|
|||
if i type in a width or height - it doesn't have any effect to the size which is showed (see printscreen)
|
#20
|
|||
|
|||
Okay I think you are using a different picture for your Gamercard... they can be a little glitchy with this code but can you remove the WIDTH/HEIGHT and retake a picture so I can see how it looks? Thanks.
|
#21
|
|||
|
|||
see printscreen above...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|