News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How to get an user's avatar using SSI.php?

Started by nicor2k, August 12, 2009, 04:39:57 AM

Previous topic - Next topic

nicor2k

Hi everybody!

Using SMF 2.0, I'd like to get the user's avatars (database access possible). Somehow, it's a little strange, the images are only stored without file-extension. Is there a nice and smooth way to easily show them and display them (on a non-forum page! Using SSI.php only).

demonstration site: http://www.girls-time.com/index.php

nicor2k

I made a screenshot to explain what I wanted to do: Instead of the sample images, I'd like to display the real user's avatar. Any idea how to do this?


Norv

Please check out the function ssi_queryMembers(), it populates an array of members with data about them, including avatars.

On another note, perhaps this topic would be better off at SMF Coding Discussion board, I will move it there.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Kays


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: