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

Where are user Avatars stored/referenced?

Phases

Active member
#1
For the life of me I can't find how to pull the location of Avatars for users. I was expecting when I pulled xf_user to be able to get it from there, but I just see dimensions and date.

(which I can't make much sense of (the date), much like the post_date in xf_thread..)

Basically I'm querying some user info and wanted to attach their avatar to it.

Thanks for any insight.
 

Brogan

XenForo moderator
Staff member
#2
They are stored in 3 places (small, medium, large):
data/avatars/s
data/avatars/m
data/avatars/l

For example, your avatar in the message template is data/avatars/m/2/2166.jpg?1285006902

I'm just looking in the tables now to see if it's referenced there.
 

Phases

Active member
#3
Oh nice, that helps. If you find it in a table hook me up, but I think I can work with that. Much appreciated.

Edit: Nicer, 3 different sizes to choose from!