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)

JVCode 12-05-2009 10:33 PM

Will this mod be getting an update with v4? If not, could someone help me in getting this to work with v4?

cyclobe 12-08-2009 02:37 AM

It's extremely easy to get working and if your community listed in your signature is correct you got it working :)

Just for future references for those wondering -

Follow all the instructions listed in the main post. Only changes are as follows -

Modify the Postbit_legacy in your template:

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

Find
Code:

<vb:if condition="$show['avatar']">
                <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:raw post.username} is {vb:raw post.online} now.">
                        <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                </a>
                </vb:if>

After that add
Code:

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

Where field# is the field you put in for the GT. That's it.

My own personal edit for one of my clients is
Code:

<vb:if condition="$post['field5']">
<center><img src="http://avatar.xboxlive.com/avatar/{vb:raw post.field5}/avatar-body.png">
</center>
<vb:else />

               
                <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:raw post.username} is {vb:raw post.online} now.">
                        <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                </a>

</vb:if>

Which shows the 360 avatar first if they so have one otherwise show the forum avatar they selected (or uploaded)

Zippeh XF 02-14-2014 04:09 PM

Does this mod work woth 4.2.2?

sbryan 08-04-2014 02:09 PM

this still working, particularly on 3.8.8?


All times are GMT. The time now is 02:18 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.00944 seconds
  • Memory Usage 1,723KB
  • 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
  • (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
  • (4)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