PDA

View Full Version : Xbox LIVE Avatars


GamingFusion
10 Nov 2008, 04:45
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

<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:

<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
10 Nov 2008, 07:27
Looks nice, thanks!

GamingFusion
10 Nov 2008, 08:27
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:

<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
13 Nov 2008, 05:05
Making this a block in the profile might suit some forums better, but great idea!

compact123
20 Nov 2008, 09:02
installed,thank you...

https://www.vbulletin.org/forum/

Saint Dean
20 Nov 2008, 13:17
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
22 Nov 2008, 23:34
Works perfect awesome

GamingFusion
23 Nov 2008, 09:46
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
24 Nov 2008, 09:10
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 Dec 2008, 05:26
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 Dec 2008, 16:15
Hmm.. I'll try getting this to work on my forum later (albeit for the profile).

SSC streezer
08 Jan 2009, 11:37
where are the files? can somebody upload them again?

Cledus James
09 Jan 2009, 23:51
where are the files? can somebody upload them again?

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

SSC streezer
10 Jan 2009, 14:57
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
11 Jan 2009, 09:29
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
11 Jan 2009, 22:15
installed,thank you...

https://www.vbulletin.org/forum/

How did you remove the border around it ?

inparadise
11 Jan 2009, 22:23
got it to work..

Nephalim
11 Jan 2009, 22:26
installed,thank you...

http://img151.imageshack.us/img151/8370/adszdr6.jpg

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
12 Jan 2009, 10:21
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
19 Jan 2009, 11:08
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
20 Jan 2009, 22:52
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
24 Jan 2009, 07:32
thank youGamefusion

YaiR9694
03 Mar 2009, 12:30
how i replace all of avatars of the forum to this?
(sorry about my bad english)

DNG
11 Jun 2009, 02:46
thanks alot :)

DNG
11 Jun 2009, 12:29
how to change the position to the bottom??

thanks again

DNG
11 Jun 2009, 13:36
i did it by adding the code after:

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

:)

Psychosiis2
04 Jul 2009, 02:30
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
21 Oct 2009, 16:41
installed..nice work!!!

Danny Diamond
19 Nov 2009, 03:36
Installed. That was easy and it really neat.

Thanks

Zaiaku
19 Nov 2009, 04:22
Oh this is great. I really like this one.

JVCode
05 Dec 2009, 23:33
Will this mod be getting an update with v4? If not, could someone help me in getting this to work with v4?

cyclobe
08 Dec 2009, 03:37
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

<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

<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

<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
14 Feb 2014, 16:09
Does this mod work woth 4.2.2?

sbryan
04 Aug 2014, 15:09
this still working, particularly on 3.8.8?