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

TomJames 12-12-2008 03:15 PM

Hmm.. I'll try getting this to work on my forum later (albeit for the profile).

SSC streezer 01-08-2009 10:37 AM

where are the files? can somebody upload them again?

Cledus James 01-09-2009 10:51 PM

Quote:

Originally Posted by SSC streezer (Post 1705003)
where are the files? can somebody upload them again?

There are no files needed my man, just changes done through the ACP.

SSC streezer 01-10-2009 01:57 PM

hehe^^ i got it ! but the gamercard i can't add in (i know its an other mod) but can somebody help me throught PM or mail?

GamingFusion 01-11-2009 08:29 AM

Quote:

Originally Posted by SSC streezer (Post 1707321)
hehe^^ i got it ! but the gamercard i can't add in (i know its an other mod) but can somebody help me throught PM or mail?

Send me a PM with your problem and I'll gladly help you or send a PM to Starlit Notion on gamingfusion.org (when the site is open)!

?Austin

inparadise 01-11-2009 09:15 PM

Quote:

Originally Posted by compact123 (Post 1669224)
installed,thank you...

https://vborg.vbsupport.ru/

How did you remove the border around it ?

inparadise 01-11-2009 09:23 PM

got it to work..

Nephalim 01-11-2009 09:26 PM

Quote:

Originally Posted by compact123 (Post 1669224)

hey where can you get that box below the avatar? i see it in sites and on a phpbb forum. that would be cool to put in my site

GamingFusion 01-12-2009 09:21 AM

Quote:

Originally Posted by Nephalim (Post 1708998)
hey where can you get that box below the avatar? i see it in sites and on a phpbb forum. that would be cool to put in my site

The Gamercard? Just search it.. they have different versions... but just search it here on vBulletin.org.. you'll find it no problem. Just I would give you an exact link.. but as there are many variations and different ones.. I'll leave that choice up to you.

inparadise 01-19-2009 10:08 AM

is it possible to have this in the member info area ?

Like, if the user don't have a avatar picture but have entered his gamer tag, it shows the avatar body in staid

GamingFusion 01-20-2009 09:52 PM

Quote:

Originally Posted by inparadise (Post 1717700)
is it possible to have this in the member info area ?

Like, if the user don't have a avatar picture but have entered his gamer tag, it shows the avatar body in staid

There is a mod for this already that exists for 3.7.x but it works with 3.8.x just fine. Search Xbox LIVE avatar in the search box and you'll find it! =]

Nephalim 01-24-2009 06:32 AM

thank youGamefusion

YaiR9694 03-03-2009 11:30 AM

how i replace all of avatars of the forum to this?
(sorry about my bad english)

DNG 06-11-2009 01:46 AM

thanks alot :)

DNG 06-11-2009 11:29 AM

how to change the position to the bottom??

thanks again

DNG 06-11-2009 12:36 PM

i did it by adding the code after:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

:)

Psychosiis2 07-04-2009 01:30 AM

Is there any way that you can add this to the profile? In the Blocks on the right.. Like I have the MP3 Player and YouTube video I want to add it there along with my Friends and Albums..

COL NIL SATIS 10-21-2009 03:41 PM

installed..nice work!!!

Danny Diamond 11-19-2009 02:36 AM

Installed. That was easy and it really neat.

Thanks

Zaiaku 11-19-2009 03:22 AM

Oh this is great. I really like this one.

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 04:56 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.01238 seconds
  • Memory Usage 1,810KB
  • 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
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete