By Philippe on Thursday, 05 December 2019
Replies 1
Likes 0
Views 2.3K
Votes 0
Hello,

I would like to display comments only if the user is a member of the group. And hide them from guests and non-group users.
In the following file, would there be a similar code as $this->my->guest for groups ?
For example : $this->group->isMember()

File : /administrator/components/com_easysocial/includes/stream/stream.php
Code :

if ($comments && $this->my->guest && $this->config->get('stream.comments.guestview')) {


Thank you,
Philippe
Hi Philippe,

Are you just checking for groups? or clusters in general? If you are checking for any cluster, you can use something similar to the one below(this is under the getActions function for the following file).
/administrator/components/com_easysocial/includes/stream/stream.php

ES::cluster($options->cluster_id)->isMember()
·
Thursday, 05 December 2019 12:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post