If you check the groups on the side you'll see all your members :P
This includes members with default pictures that look 'default' xD
I've been playing around with the default getMembers() but I've been looking for a way to only fliter those members that have a beautiful picture. Is there a simple way to doing this?
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.
- Trajan@Trajan
Trajan - 0 likes
- seth101@seth101
seth101 - 0 likes
- Andras Szepeshazi@aszepeshazi
Andras Szepeshazi - 0 likes
You must log in to post replies.get by metadata "icontime". Those who have not uploaded a profile icon will not appear.
yuppers I tried that :P unfortunately it also pulls members that are not part of the group itself xDddd any ideas? :P?
This is a bit tricky, as you need to filter your results both by metadata (icontime, as Trajan said) and by relationship (member of the given group). Elgg does not have a built in function for that. You can either
a) get all group members, iterate through them and check for $user->icontime, only displaying those who have a bigger than zero value
b) add custom join and where tags to your query options, that would go something like this:
First approach is easier and safer (uses only Elgg API functions), second is faster (but not 100% future proof, as relies on database table references).