vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - XBL Details In Profile (https://vborg.vbsupport.ru/showthread.php?t=227006)

euantor 10-28-2009 10:00 PM

XBL Details In Profile
 
1 Attachment(s)
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

MAME 10-29-2009 03:23 PM

Works like a charm. Thanks!

euantor 10-29-2009 03:32 PM

No problem :)

COL NIL SATIS 10-29-2009 03:51 PM

Brilliant that is mate!! installed!!

euantor 10-29-2009 04:05 PM

Thanks man :] Glad you like it.

COL NIL SATIS 10-29-2009 04:11 PM

Also gave it 5stars rating...nice easy hack that my members will love...keep up the good work !!!

euantor 10-29-2009 04:16 PM

Thanks once again! I try my best lol

abdobasha2004 10-29-2009 08:27 PM

good mod however small number of forums will benefit from it !

mbc100 10-29-2009 10:31 PM

good mod THANKS

euantor 10-30-2009 07:25 AM

Quote:

Originally Posted by abdobasha2004 (Post 1908017)
good mod however small number of forums will benefit from it !

True ;)

Quote:

Originally Posted by mbc100 (Post 1908057)
good mod THANKS

Thanks a lot.


All times are GMT. The time now is 02:55 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.01116 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete