elgg db -> user's profile icons

Hi -

I'm trying my hand at writing my first plugin for elgg 1.5, and I would like to know if anyone can point me to where info about a user's profile picture is in the db.  I want to call the pic and username (found the username) and display it on the page.

I already have to make another db table for this plugin's functionality, but I was hoping to save some overhead by allowing users to be selected from the existing database, rather than having to manually enter each user to add them to my plugin's list.

Thanks in advance!

  •  

    In my (Windows) installation its under the "data" tree that is setup at installation time, so for a user name "John" the folder path is:

        ...\J\o\h\n\John\profile

    If you install the photo album, the photo folders are in:

         ...\J\o\h\n\John\image

     

  • thanks very much.

    It occured to me that there is already some method by which elgg finds user icons, so I dug around a little and found that doing this...

    /mod/profile/icondirect.php?username=john&size=medium

    is all I needed.