I found an interesting article related to this post:
http://community.elgg.org/pg/forum/topic/784253/comments-only-for-friends/
all good Until You try to reply to a comment from a friend, and surprise, I ironically as owner of the post I can not comment ... wrong ...
there is a plugin, derivate of this, called "socialprivacy" but does not solve the problem ... experts who have the solution?
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.
- rjcalifornia@rjcalifornia
rjcalifornia - 0 likes
- DevCreative@Testr
DevCreative - 0 likes
in case anyone needs it, or if you want to add to the plugin!
$owner = get_user($vars['entity']->owner_guid);
$user = page_owner_entity(); // by me
if (isset($vars['entity']) && isloggedin() && $owner->isFriendsWith(get_loggedin_userid()) || isadminloggedin() || $user->guid == get_loggedin_userid()) {
... comment form ...
}
- rjcalifornia@rjcalifornia
rjcalifornia - 0 likes
See it for elgg 1.8 here: http://community.elgg.org/pg/plugins/project/881973/developer/rjcalifornia/sw-social-privacy-for-elgg-18
- Team Webgalli@webgalli
Team Webgalli - 0 likes
You must log in to post replies.Hi,
Well, I totally forgot about this plugin. Anyways, I test this old one and you're right, owner can't comment. Never noticed that.
In esence you would like only friends to comment. I'll see if I can upgrade this to 1.8.x
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
thanks rjcalifornia,
I think I found the solution for (Elgg 1.7.x),
/views/default/comments/forms/edit.php
Great solution! I came up with this solution last night:
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
Rj:instead of relying on session variables use,