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)
-   -   Xbox LIVE Avatars (https://vborg.vbsupport.ru/showthread.php?t=195874)

GamingFusion 11-09-2008 10:00 PM

Xbox LIVE Avatars
 
1 Attachment(s)
This mod does work with 3.7.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!

duckdodger 11-10-2008 06:27 AM

Looks nice, thanks!

GamingFusion 11-10-2008 07:27 AM

Quote:

Originally Posted by duckdodger (Post 1662789)
Looks nice, thanks!

Glad you like it! I just deployed an update (it's small) but adds a Box around the avatar keeping it separate from your forum avatar.

It's completely optional and can be found here:

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>

Reminder: change [field5] to your Field ID.

stickskills 11-13-2008 04:05 AM

Making this a block in the profile might suit some forums better, but great idea!

compact123 11-20-2008 08:02 AM

installed,thank you...

https://vborg.vbsupport.ru/

Saint Dean 11-20-2008 12:17 PM

Can you possible provide me or helping put this in the profile. We already have gamercard in postbit and would like to see this play more of a part in the profiles.

Vicros 11-22-2008 10:34 PM

Works perfect awesome

GamingFusion 11-23-2008 08:46 AM

Quote:

Originally Posted by Saint Dean (Post 1669307)
Can you possible provide me or helping put this in the profile. We already have gamercard in postbit and would like to see this play more of a part in the profiles.

I'm working on that now! Thanks for the question! :) I should have it up next Sunday! (December 30th) Check back then! :) I'm on vacation at the moment so I'm unable to actually work on this.

Im Spazzoid 11-24-2008 08:10 AM

Quote:

Originally Posted by Saint Dean (Post 1669307)
Can you possible provide me or helping put this in the profile. We already have gamercard in postbit and would like to see this play more of a part in the profiles.

Take the mod that puts the gamercard in a profile block and edit the template to use the code for the avatar instead

Mike21 12-12-2008 04:26 AM

Well my doesnt show and i tried everything here:

dgpro-gaming.com/forums

my userbar goes ontop for some reason how do i change that


All times are GMT. The time now is 08:19 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.01327 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
  • (3)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