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.

remove group members

9 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

ISSUE SUMMARY: Is there a way to hide the group members within a group.. its ok to show how many members but what if a member wants to be in a group but doesn't want to be seen?


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

9 years 10 months ago
Licenses:

Hi Rocky,

here the steps:
copy list.php from /components/com_community/templates/jomsocial/layouts/groups/ to /templates/socialize/html/com_community/layouts/groups/

edit and here this code from line 135

<li>
    <svg class="joms-icon" viewBox="0 0 16 16">
        <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-users"/>
    </svg>
    <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewmembers&groupid='.$group->id) ?>">
    <?php echo JText::sprintf((CStringHelper::isPlural($group->membercount)) ? 'COM_COMMUNITY_GROUPS_MEMBER_COUNT_MANY':'COM_COMMUNITY_GROUPS_MEMBER_COUNT', $group->membercount);?>
    </a>
</li>

copy single.php from /components/com_community/templates/jomsocial/layouts/groups/ to /templates/socialize/html/com_community/layouts/groups/

edit and here this code from line 282
<li class="half">
    <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewmembers&groupid=' . $group->id); ?>"><?php echo ($membersCount == 1)
            ? JText::_('COM_COMMUNITY_GROUPS_MEMBER') . ' <span class="joms-text--light">' . $membersCount . '</span>'
            : JText::_('COM_COMMUNITY_GROUPS_MEMBERS') . ' <span class="joms-text--light">' . $membersCount . '</span>'; ?></a>
</li>

remove this code from line 584
<a href="#joms-group--members" class="active"><?php echo JText::sprintf('COM_COMMUNITY_GROUPS_MEMBERS'); ?></a>

remove this code from line 590
<!-- Group's Members @ Sidebar -->
<?php if ($members) { ?>
<div id="joms-group--members" class="joms-tab__content">

    <ul class="joms-list--photos clearfix">
        <?php foreach ($members as $member) { ?>
            <li class="joms-list__item">
                <div class="joms-avatar">
                    <a href="<?php echo CUrlHelper::userLink($member->id); ?>">
                        <img
                            src="<?php echo $member->getThumbAvatar(); ?>"
                            title="<?php echo CTooltip::cAvatarTooltip($member); ?>"
                            alt="<?php echo CTooltip::cAvatarTooltip($member); ?>"/>
                    </a>
                </div>
            </li>
            <?php if (--$limit < 1) {
                break;
            }
        } ?>
    </ul>

    <div class="cUpdatesHelper clearfull">
        <a href="<?php echo CRoute::_(
            'index.php?option=com_community&view=groups&task=viewmembers&groupid=' . $group->id
        ); ?>">
            <?php echo JText::_('COM_COMMUNITY_VIEW_ALL'); ?> (<?php echo $membersCount; ?>)
        </a>
    </div>
</div>
<?php } ?>
<!-- Group's Members @ Sidebar -->

and changing the code at line 586, from
<a href="#joms-group--events"><?php echo JText::sprintf('COM_COMMUNITY_EVENTS'); ?></a>
to
<a href="#joms-group--events" class="active"><?php echo JText::sprintf('COM_COMMUNITY_EVENTS'); ?></a>

Regards

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