By EXIS on Monday, 27 July 2015
Posted in Groups
Replies 1
Likes 0
Views 808
Votes 0
Hello,

I want to limit the number of users in a group but keep the group visible in the front end.

Is there a way to disallow users to join the group?
Hi Exis,

I am sorry for the late reply.

Here I have attached to you a patch in which it will create a custom field for member limit. So you now you can limit the number of member per group. Can download it and install it in EasySocial > Applications.
Also, here I have attached to you 3 files, can you please download it and put it here:
1. /components/com_easysocial/themes/wireframe/groups/default.items.group.php
2. /components/com_easysocial/themes/wireframe/groups/item.header.php
3. /administrator/components/com_easysocial/includes/group/group.php

After installing this patch and overrides the files, you need to add the memberLimit custom field in your group category. Please give this a try and see how it goes.

Also please add this language string in your language file:
; @since 1.3
; Field: Member Limit
FIELDS_GROUP_MEMBERLIMIT_INFO="This custom field allows you to add members limit field for group in EasySocial."
FIELDS_GROUP_MEMBERLIMIT_DEFAULT_TITLE="Group Member Limit"
FIELDS_GROUP_MEMBERLIMIT_DEFAULT_DESCRIPTION="Specify total member allowed to join the group. (0 for unlimited)"

Please do remember to backup the original files before overriding these files on your site.
·
Monday, 27 July 2015 17:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post