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:
$owner = get_user($vars['entity']->owner_guid);
$user = $_SESSION['user']->username;
if ( $owner->username == $user || $owner->isFriendsWith(elgg_get_logged_in_user_guid()))
{
... comment form ...}
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
Rj:instead of relying on session variables use,
$owner = get_user($vars['entity']->owner_guid);
$logged_in_guid = elgg_get_logged_in_user_guid();
if ( $owner->guid == $logged_in_guid || $owner->isFriendsWith($logged_in_guid)){
... comment form ...
}
@Matt I understand but I dont get other option to do that. Please advise.
@Matt and @DevCreative
I have reverted back changes in core file. And use following plugin and its great.
http://community.elgg.org/plugins/869366/1.8.2/elgg-18-set-no-notifications
floppy fingers on cut/paste/.. no idea what that other c:// link was ;-) such a simple little typo accident, sorry.. !! should have been := (1) http://community.elgg.org/mod/groups/topicposts.php?topic=186284&group_guid=23300 (2) http://community.elgg.org/mod/groups/topicposts.php?topic=200333&group_guid=23300
Excellent job Liang Lee, been waiting for this for awhile :)
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.