Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Tosfera on January 28, 2016, 06:20:05 AM

Title: [solved] Retrieve avatar from users
Post by: Tosfera on January 28, 2016, 06:20:05 AM
I've been struggling for at least 2 hours now, I've got the $user_info filled by default but the ['avatar']['url'] seems to be empty. No big deal, it's okay. Guess that's only being filled when an user uses an url as an avatar. I do have the ['filename'] so I've been trying, wait let's go back and say that again, trying struggling to retrieve the image with that name. I can't find it anywhere on my webserver and it's seriously freaking me out.

Where are the avatars being stored, how is this working and why isn't it somewhere stored on the webserver? As far as I could see is that the avatars are saved in a format like: "avatar_userId_timestamp.jpg", these timestamps are totally lost somewhere too. Anyone can point some light on this for me?


solved. I've saved the id_attach and retrieved the image with the dlattach function like the profile does.