By Philippe on Wednesday, 13 November 2019
Posted in Technical Issues
Replies 3
Likes 0
Views 565
Votes 0
Hello,

For EasySocial Groups Module, could you help me and said me how can I display only Groups whose logged-in user is not a member (not Join) ?
In other words, the opposite of the option "User Groups (Only display groups from current logged in user)"

In my opinion it happens in the file and the following area :
But how to reverse the function ?
/modules/mod_easysocial_groups/helper.php

// Groups from logged in user
if ($filter == 3) {
$options['types'] = 'currentuser';
$options['userid'] = $my->id;
$groups = $model->getGroups($options);
Thank you,
Philippe
Hi Philippe,

As I see the code, it seems it is not possible to get groups from the user that is not yet become member, where you need to customize the function(getGroups) in the model core file:
.../administrator/components/com_easysocial/models/groups.php

I am really sorry but unfortunately we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in https://stackideas.com/support

Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would gladly send you a quote for the customization that you have requested.
·
Wednesday, 13 November 2019 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
I understand.
I've found a solution !

Just add this code in this file :
/modules/mod_easysocial_groups/tmpl/horizontal.php

<?php if ($group->isMember()) { ?>
<?php } else { ?>
...
<?php } ?>
Philippe
·
Wednesday, 13 November 2019 20:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Philippe,

Great! Glad you get the solution

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Thursday, 14 November 2019 10:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post