Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Xbox Gamercards [NXE enabled] Details »»
Xbox Gamercards [NXE enabled]
Version: 2.00, by GamingFusion GamingFusion is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.x Rating:
Released: 11-12-2008 Last Update: Never Installs: 10
Template Edits
Re-useable Code  
No support by the author.

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>&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 Gaming Fusion!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-12-2009, 08:59 PM
GamingFusion GamingFusion is offline
 
Join Date: Sep 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SSC streezer View Post
if i type in a width or height - it doesn't have any effect to the size which is showed (see printscreen)
Okay I'm looking at this here.. it appears to have some issues either with the postbit (width you are using) or something... is up with the coding/skin you are using. I can only know for sure when I can take a look for myself at your post you are doing on the forum. I can't see it while it is offline though.. so I need you to open your forum and send me a message when you have/are able to.

Try replacing the code I gave you with this though in the meantime and tell me if this solves your issue:

Code:
<if condition="$post[field#]">
<iframe src="http://gamercard.xbox.com/$post[field#].card" scrolling="no" frameBorder="0" height="140" width="204">$post[field#]</iframe>
</if>
This is a simplified basic code for a gamercard that isn't styled or anything. I'm trying to see if this will solve your dimension issue. If you still have the issue, open your forum up, and send me a message to look.

Hope this helps you.
~Austin
Reply With Quote
  #23  
Old 01-14-2009, 10:39 PM
Nephalim Nephalim is offline
 
Join Date: Apr 2005
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey help please i pm'ed you i cannot see the gamercard at all. info is in the pm

thank you sir
Reply With Quote
  #24  
Old 01-15-2009, 08:44 AM
SSC streezer SSC streezer is offline
 
Join Date: Nov 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol it still is warped... see here: http://forum.swisssoldiersclan.ch/sh...5215#post15215
Reply With Quote
  #25  
Old 01-16-2009, 08:19 AM
SSC streezer SSC streezer is offline
 
Join Date: Nov 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can nobody help me with that problem?
Reply With Quote
  #26  
Old 01-17-2009, 05:29 PM
Nephalim Nephalim is offline
 
Join Date: Apr 2005
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SSC streezer View Post
can nobody help me with that problem?
good luck,i asked for help 5 times now
Reply With Quote
  #27  
Old 02-12-2009, 06:52 PM
GamingFusion GamingFusion is offline
 
Join Date: Sep 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nephalim View Post
hey help please i pm'ed you i cannot see the gamercard at all. info is in the pm

thank you sir
Never got any of your PMs. Sorry... send it to me again.

@SSC -- it's your style settings if you take the width/height tags out.
Check them.
Reply With Quote
  #28  
Old 06-11-2009, 12:20 PM
DNG DNG is offline
 
Join Date: Jun 2009
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

running 3.8.2
installation done, but when i click Xbox Live to view the card, all page got missed up !

is there away to avoid this dropdown card and make it appear all the time (fixed)????
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08232 seconds
  • Memory Usage 2,282KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete