1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

X-Box Live Post Avatars

Discussion in 'Resource and Add-on Requests' started by DRE, Jul 15, 2012.

  1. DRE

    DRE Well-Known Member

  2. Chris D

    Chris D XenForo Developer Staff Member

    I can probably do this. PM!
     
    8thos likes this.
  3. DRE

    DRE Well-Known Member

    I started work on it already but got stuck so I'll definitely pm you lol.
     
  4. EQnoble

    EQnoble Well-Known Member

    I actually already have this done.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Ah sounds good.

    Release!
     
  6. DRE

    DRE Well-Known Member

    Are you saving it up for a rainy day resource blitzkrieg?
     
    EQnoble and Yorick like this.
  7. EQnoble

    EQnoble Well-Known Member

    well no .... i just find myself too tired and unmotivated to do anything at the moment and finding the one tiny thing i need to make this releasable is just too much of a chore to do right now

    Unless you can find someone to help me within the next hour and 20 minutes I wont be posting it tonight....


    such a turn of phrase...that really did make me chuckle...gets a like for that..
     
  8. Chris D

    Chris D XenForo Developer Staff Member

    What is it you need. I can help, but tomorrow.

    PM me if you like.
     
  9. DRE

    DRE Well-Known Member

    I'm also unmotivated but I think Yorick is your best bet right now. He has the energy we used to have.
     
  10. EQnoble

    EQnoble Well-Known Member

    well...all I need to know is how to get data from a single line custom user field
     
  11. DRE

    DRE Well-Known Member

    Name the single-line userfield: xboxpostavatars

    Code:
    http://avatar.xboxlive.com/avatar/{$user.customFields.xboxpostavatars}/avatar-body.png
    For instance this is mine. http://avatar.xboxlive.com/avatar/argotvie/avatar-body.png
     
    EQnoble likes this.
  12. EQnoble

    EQnoble Well-Known Member

    good looks...

    {$user.customFields.xboxpostavatars} <-- that is exactly what i needed
     
  13. DRE

    DRE Well-Known Member

  14. DRE

    DRE Well-Known Member

    This sh@! is driving me nuts! Been working on it the past two days.
     
  15. EQnoble

    EQnoble Well-Known Member

    link me to a post with one in it...ill give you the css
     
  16. DRE

    DRE Well-Known Member

    I'm trying to create it on a local installation since my site is down.

    I'm just trying to stick this somewhere. It works in post template but it doesn't let me use the custom user field.

    Code:
    <xen:if is="{$user.customFields.xboxlive}">
    <span class="body"><img src="http://avatar.xboxlive.com/avatar/{$user.customFields.xboxlive}/avatar-body.png" align="right" width="150" height="300" /></span>
    </xen:if>
    
     
  17. EQnoble

    EQnoble Well-Known Member

    Why is your site down?


    Gimme a lil bit then....I would have to go find this thing from when I made it before, or redo it so I can test it then....without your site being up I could be giving you bad info and we wouldn't know it otherwise.

    I also have to finish up the JS that is kicking my ass at the moment (not really but straigh JS just looks way messy compared to jQ syntax and I haven't been playing with it as much as jq so it is hurting my eyes.)
     
  18. DRE

    DRE Well-Known Member

    I don't know. Someone will inspect it in the morning though. http://xenforo.com/community/threads/sql-queries-causing-slowdown-and-outages.45964/

    I like X-Box Live Avatars because of the amount of customization that goes into them.
     
  19. DRE

    DRE Well-Known Member

    Still want!
     
  20. 0xym0r0n

    0xym0r0n Well-Known Member

    I'm no longer a VB member what exactly are you looking to do?
    Completely replace the user avatar IF they have entered their gt and select to display their xbox avatar?

    IF SO I have something like this that's incomplete for PSN/Steam/Xbox/Rockstar *like a ton of other things as you well know*

    Here's the basics of it. A lil DIY but I know you can tweak it to make it work
    Go to message_user_info

    FIND
    Code:
    <div class="avatarHolder">
                <span class="helper"></span>
                <xen:avatar user="$user" size="m" img="true" />
                <!-- slot: message_user_info_avatar -->
            </div>
    
    REPLACE
    Code:
    <xen:if is="{$user.customFields.xbox}">
    <img src="http://avatar.xboxlive.com/avatar/{$user.customFields.xbox}/avatar-body.png" width="68px" height="135px">
    <xen:else />
    <div class="avatarHolder">
                <span class="helper"></span>
                <xen:avatar user="$user" size="m" img="true" />
                <!-- slot: message_user_info_avatar -->
            </div>
            </xen:if>
    
    {$user.customFields.xbox} = the custom user field ID replace with your xbox field id!

    Now this doesn't check to see if the user would like to display it as an avatar. You'd need to add an extra conditional. if you need help with that just poke me.

    AND you have to find every instance of the avatar in the templates and replace it. The add-on would likely use the hook system? I forgot what I was doing... if you know how to do that you can skip ahead and do that lol XD
     

Share This Page