ho April.
Unfortunately this will require some serious code modifications which are beyond our support scope. Maybe you could simply use "private groups" feature, it'll prevent users from joining this group. If this's not the ideal solution for you, then I suggest hiring a professional php developer for this task, you find one here >
www.jomsocial.com/jomsocial-developers
hi April.
I'm extremly sorry, but I'm not an php developer so I cannot help you on this one, also such customization is beyond our support scope.
Hi April,
please make override for: (
documentation.jomsocial.com/wiki/Customizing_Template
)
/components/com_community/templates/default/groups.viewgroup.php
code at lines 43 -45:
<?php } else { ?>
<div class="btn btn-primary" onclick="joms.groups.join(<?php echo $group->id;?>)"><i class="js-icon-user-add"></i><?php echo JText::_('COM_COMMUNITY_GROUPS_JOIN'); ?></div>
<?php }?>
<?php } else if ($group->id == 4 || $group->id == 6) { ?>
<div class="btn btn-primary" onclick="joms.groups.join(<?php echo $group->id;?>)"><i class="js-icon-user-add"></i><?php echo JText::_('COM_COMMUNITY_GROUPS_JOIN'); ?></div>
<?php }?>
Hi Albert,
I have added in the ftp information.
For the group, I wish to hide for groups "Furniture", "Home Decor" and "Interior Design", which currently are the groups 1, 2 and 3 under the admin panel, but under 2, 3 and 1 when I open up the groups.
Thank you very much for the help.
Hi April,
please check it:
<?php } else if ($group->id != 1 && $group->id != 2 && $group->id != 3) { ?>
<div class="btn btn-primary" onclick="joms.groups.join(<?php echo $group->id;?>)"><i class="js-icon-user-add"></i><?php echo JText::_('COM_COMMUNITY_GROUPS_JOIN'); ?></div>
<?php }?>
Hi Albert,
Thank you for the prompt action.
Any way to hide the button from everyone? The main purpose is to prevent everyone from joining and only allow manual adding of member from the admin panel.
Thank you.