vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Xbox LIVE Avatars (https://vborg.vbsupport.ru/showthread.php?t=195875)

GamingFusion 11-09-2008 10:00 PM

Xbox LIVE Avatars
 
This mod does work with 3.8.x as well!

Demo: http://www.gamingfusion.org/commune/showthread.php?t=2 and look under the Hitokyri profile to see the avatar silhouette! (EDIT: My apologies but you have to be a registered user to view this demo. If you still wish to view the DEMO, you will need to register when prompted).

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 2: Modify the Postbit_legacy in your template:

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

Find

Code:

                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>

After this add:

Code:

<if condition="$post[field#]"><center><img src="http://avatar.xboxlive.com/avatar/$post[field#]/avatar-body.png" width="75" height="150">
</center></if>

Replace the $post[field#] with your field ID you used for your gamertag!

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

Step 4: You're done! Enjoy your avatars that will start appearing on November 19th with the launch of the New Xbox Experience!

FAQ

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

Answer: If you don't think it is working and want to make sure, temporarily edit your details and edit your gamertag to Major Nelson. If you see something now, you'll know it is working correctly and just waiting for you to get the New Xbox Experience on November 19th. Remember to change your gamertag back to yours and you'll be set! :)

Enjoy the MOD! :)
Any questions? Leave them here!

abus3d 11-10-2008 05:10 AM

goood work :)

GamingFusion 11-10-2008 05:17 AM

Quote:

Originally Posted by abus3d (Post 1662761)
goood work :)

Thank you! Glad you like it! :)

rob01 11-10-2008 05:44 AM

how you add the avatar box?

TheSupportForum 11-10-2008 06:11 AM

there is a mod that already allows this

gxboxlive is the name look for it and you'll see:down:

https://vborg.vbsupport.ru/showthrea...ight=gxboxlive

GamingFusion 11-10-2008 07:23 AM

Quote:

Originally Posted by simonhind (Post 1662787)
there is a mod that already allows this

gxboxlive is the name look for it and you'll see:down:

https://vborg.vbsupport.ru/showthrea...ight=gxboxlive

@Simonhind - That is a leaderboard. If you look and compare them, this modification and that modification are different as the Xbox LIVE Avatar is coming out on November 19th, how could the leaderboard show this yet? Secondly, even the Xbox LIVE gamercards only show a gamerpicture and NOT the avatar. When the gamercards are updated on the 19th of November-- it'll only show a face and not a representation of your complete avatar (body).

@rob01 - I'll post that in just a second! (EDIT: posted below to quote and show a complete explanation).

GamingFusion 11-10-2008 07:25 AM

Quote:

Originally Posted by rob01 (Post 1662775)
how you add the avatar box?

Of course! I'll explain that... I'm gonna copy and paste my code (it goes in the same place as where I had you just put the image) BUT the field ID must be your field ID and not what I have below (I used Field 5):

Code:

<if condition="$post[field5]"><fieldset><legend>Xbox LIVE Avatar</legend>
<div>
<center><img src="http://avatar.xboxlive.com/avatar/$post[field5]/avatar-body.png" width="75" height="150">
</center>
</div>
</fieldset></if>

Hope this helps you! :)

xzibit 11-12-2008 05:26 PM

Hello!
can you tell me where I hack with the XBL gamer card v2 think.
as the building is shown.
thank you very much

GamingFusion 11-13-2008 03:39 AM

Quote:

Originally Posted by xzibit (Post 1664333)
Hello!
can you tell me where I hack with the XBL gamer card v2 think.
as the building is shown.
thank you very much

Oh you mean the NXE styled gamercards? Sure!
I have submitted it now and here you go!

https://vborg.vbsupport.ru/showthread.php?t=196144

stickskills 11-13-2008 04:19 AM

Any chance of being able to display the avatar in the profile? I just don't know how to get it added there. :/


All times are GMT. The time now is 01:08 AM.

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.01082 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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