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

Reply
 
Thread Tools
XBL Details In Profile Details »»
XBL Details In Profile
Version: 1.00, by euantor euantor is offline
Developer Last Online: Jul 2011 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.x Rating:
Released: 10-28-2009 Last Update: Never Installs: 11
Template Edits
Re-useable Code  
No support by the author.

This template edit was created for and first featured at http://www.360elites.net

The edit will add a section to your user profiles that show a user's XBox Live Avatar and their Gamercard.

Step 1:

Create a Profile Field (if you haven't already)

Type: Single Line Text Box
Name: XBL Gamertag

Remember the field's ID.

Step 2:

Go to the Style Manager (Styles & Templates->Style Manager)

Select "Edit Templates" for the theme you want to edit.

Now, find the Template MEMBERINFO

This is under the category "Member Info"

Step 3:


Find:

Code:
<!-- / link bar -->
Below add:

Code:
<!-- XBL Details -->
<if condition="$userinfo[fieldXX]">
<div id="$id" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
        <a name="$id"></a>
        <span class="block_name"><center>XBox Live Details</center></span>
    </h4>
    <div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}"><div class="alt1 smallfont block_row block_footer">
<center>
<table border="0">
<tr>
<td>
<img src="http://avatar.xboxlive.com/avatar/$userinfo[fieldXX]/avatar-body.png">
</td>
<td>
<iframe src="http://gamercard.xbox.com/$userinfo[fieldXX].card" scrolling="no" frameBorder="0" height="140" width="204">$userinfo[fieldXX]</iframe>
</td>
</tr>
</table>
</center>
</div></div>
</div>
</if>
Change all the "XX" terms to the field ID number for you XBox Live gamertag field you made in Step 1.

Hit the "Save & Reload" button and voila. All done.

DEMO: http://www.360elites.net/member.php?u=1

Screenshots

File Type: jpg 360Elites - View Profile- euantor_1256826929052.jpg (56.1 KB, 0 views)
File Type: jpg 360Elites - View Profile- euantor_light_1256826973770.jpg (54.2 KB, 0 views)

Show Your Support

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

Comments
  #22  
Old 12-01-2009, 02:10 AM
maddoghalo1 maddoghalo1 is offline
 
Join Date: Feb 2009
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont see why it wouldnt let me add my gamertag lol
Reply With Quote
  #23  
Old 12-04-2009, 02:24 PM
euantor euantor is offline
 
Join Date: Aug 2009
Location: England
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm. I'm not sure why it wouldn't work either. It's because of the profile field, so try mucking about with that and make sure you set the type to "Single Line Text-Box". Also, make sure you have set the limit high enough.
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 11:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03661 seconds
  • Memory Usage 2,234KB
  • Queries Executed 18 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete