I know this has probably been answered, but I couldn't find it on the site. We want to allow someone to invite all users on our site to a group whether they are friends or not. I did the following, and now you can invite anyone except those who are admins. Please help me out, thanks!
In mod/groups/views/default/forms/groups/invite.php I changed
"if ($friends = get_entities_from_relationship('friend',$_SESSION['guid'],false,'user','',0,'',9999)) {"
to
"if ($friends = get_entities('user') {"
For some reason this only shows normal users and no admins. I'm not sure why, as I thought admins would be under entity type "user" but I guess not?
Thanks in advance for any help!
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.
- Scott@Skavoovee

Scott - 0 likes
- Carlos@cloodo

Carlos - 0 likes
You must log in to post replies.So I'd really love some help with this one, it's got me completely boggled.
Hi Scott..
I am not familiar with the groups mod.. but, do you mean 'site admin' or 'group admin'?
-Carlos