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!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ChungNg@ChungNg
ChungNg - 0 likes
- traq@traq
traq - 0 likes
You must log in to post replies.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.