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

XF 1.1 Avatar storage location in DB

Discussion in 'XenForo Questions and Support' started by speedway, Apr 30, 2013.

  1. speedway

    speedway Well-Known Member

    I am trying to work out my custom avatar import from VB and on one of my test databases I see the user has an avatar, there is avatar date, width and height in their user record.

    What I can't find is where the system knows that avatars are stored. Is there a table entry somewhere that records this info?
     
  2. AndyB

    AndyB Well-Known Member

    xf_user.avatar_date will contain a zero if the use doesn't have an avatar.
     
  3. speedway

    speedway Well-Known Member

    Yup, I have come to realise that. What stumps me is how the system knows *where* the avatar is as I cannot find any table that makes reference to the storage location of an avatar.
     
  4. AndyB

    AndyB Well-Known Member

    The location where the avatars are located is hard coded.
     
  5. speedway

    speedway Well-Known Member

    Ok, thats a start. I will search the source and see what I find.
     
  6. speedway

    speedway Well-Known Member

    .... and I found nothing aside from externalDataPath set to "data".

    For something that is so prominent in Xenforo, finding out info about them is like breaking into a bank@@@@@!
     
  7. AndyB

    AndyB Well-Known Member

    library/Xenforo/Model/Avatar.php

    line #371
     
  8. speedway

    speedway Well-Known Member

    Thanks for your time Andy, I didn't get to the bottom of it but worked out a way to get my customavatars imported and allocated correctly eventually.

    Cheers
     

Share This Page