Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Hiding join button for selected group

9 years 11 months ago
  • April's Avatar
    Topic Author
  • April
  • Offline
  • Fresh Boarder
  • Posts: 53
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi,

I need to hide the join button for selected group. The group ID can be hardcoded instead of having a new function to do it. Can the support team assist?

Thank you.

9 years 11 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

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

9 years 11 months ago
  • April's Avatar
    Topic Author
  • April
  • Offline
  • Fresh Boarder
  • Posts: 53
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi,

How about adding one parameter in group parameter and the join button will be shown/not shown according to the setting?

Thank you.

9 years 11 months ago
  • April's Avatar
    Topic Author
  • April
  • Offline
  • Fresh Boarder
  • Posts: 53
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi,

How about adding one parameter in group parameter and the join button will be shown/not shown according to the setting?

Thank you.

9 years 11 months ago
  • Chris's Avatar
  • Chris
  • Visitor
  • Thank you received: 0
Licenses:

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.

9 years 11 months ago
Licenses:

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 }?>

you can replace it with:
<?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 }?>

Regards,
Albert

The following user(s) said Thank You: April
9 years 11 months ago
  • April's Avatar
    Topic Author
  • April
  • Offline
  • Fresh Boarder
  • Posts: 53
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi Albert,

Thank you so much. But it is still not working.

April

9 years 11 months ago
Licenses:

Hi April,

please provide me your FTP access. and what what selected group need to hide the join button.

Regards,
Albert

9 years 11 months ago
  • April's Avatar
    Topic Author
  • April
  • Offline
  • Fresh Boarder
  • Posts: 53
  • Thank you received: 1
Licenses:
JomSocial Expired

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.

9 years 11 months ago
Licenses:

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 }?>

if member or owner, they still have invite button on it. but for else will no have button/join button for group id 1,2, and 3

Regards,
Albert

9 years 11 months ago
  • April's Avatar
    Topic Author
  • April
  • Offline
  • Fresh Boarder
  • Posts: 53
  • Thank you received: 1
Licenses:
JomSocial Expired

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.

9 years 11 months ago
Licenses:

Hi April,

do mean for group id 1,2, and 3 by default will not have join button. and only group owner/admin can invite the group member?

Regards,
Albert

9 years 11 months ago
  • April's Avatar
    Topic Author
  • April
  • Offline
  • Fresh Boarder
  • Posts: 53
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi Albert,

Yes. I do not want the join group button to show at all. For members to join that group, admin will manually assign them from admin panel.

Thank you in advance.

9 years 11 months ago
Licenses:

Hi April,

Done, please check it.

Regards,
Albert

The following user(s) said Thank You: April
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW