By Iswandi Hamdi on Wednesday, 06 February 2019
Posted in Groups
Replies 5
Likes 0
Views 701
Votes 0
Hello Easysocial Team,

Goal 1:
I have a need in the Easysocial groups. The goal is that only that owners and admins can do Upload in "Files" - all other members can read files.

Goal 2:
Owner und admins have the possibility to lock folders. That there ist only a read access for members.

Is there already a solution for this? If not how is the best way to reach this?

Thanks
Chris
Hey Chris,

We do not have these functionality built-in into EasySocial but you would need to tweak and customize it if you need such functionality.
·
Wednesday, 06 February 2019 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

thanks for this information.

Can you give me the functions/object in ES for:
- GetGroupId of current Group
- GetRoll from User in Group (based on Userid und Groupid)

Thanks
Chris
·
Thursday, 07 February 2019 21:28
·
0 Likes
·
0 Votes
·
0 Comments
·
If you already have the group object, you can get the id using the following codes:

[gist]
<?php echo $group->id;?>
[/gist]

To get the role of a user in a group,

[gist]
<?php
// Determines if user is a member
var_dump($group->isMember($userId));

// Determines if user is an admin
var_dump($group->isAdmin($userId));

// Determines if user is an owner
var_dump($group->Owner($userId));
?>
[/gist]
·
Friday, 08 February 2019 12:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Marks,

thanks your help. Can you give a hint how to call the group object within components/com_easysocial/themes/wireframe/explorer/default.php

Thanks
Chris
·
Thursday, 14 February 2019 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
If you want to know what variables are being sent to the theme files, they are as simple as doing this on the theme file:

[gist]
var_dump($this);
[/gist]

Anyway you can access the cluster type using the following variable. The $objectType could be a group, event or page

[gist]
$objectType
[/gist]
·
Thursday, 14 February 2019 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post