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.

Groups Menu

11 years 4 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

Hi,

How can I make all the groups menus show in the main tab? Some of the itens of the menu are inside the "more" in a submenu. How can I make them show on the main menu in one single row?

Attachment screenshot_2015-06-23.jpg not found




Thanks

Attachments:
11 years 4 months ago
Licenses:

Hi,

here the steps to override that group page template:
1. copy single.php from [site root]/components/com_community/templates/jomsocial/layouts/groups/ to [site root]/templates/[frontend template folder]/html/com_community/layouts/groups/ (create the folders if not exist yet)
2. edit that file, at line 311

<li class="full">
    <a href="javascript:" data-ui-object="joms-dropdown-button">
        <?php echo JTEXT::_('COM_COMMUNITY_MORE'); ?>
        <svg viewBox="0 0 14 20" class="joms-icon">
            <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-arrow-down"></use>
        </svg>
    </a>
    <ul class="joms-dropdown more-button">
        <?php if ($config->get('creatediscussion')) { ?>
            <li><a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
                    <?php echo ($totalDiscussion == 1)
                        ? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
                        : JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
                </a></li>
        <?php } ?>
        <?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
            <li>
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
                    <?php echo ($totalBulletin == 1)
                        ? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
                        : JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
                </a>
            </li>
        <?php } ?>
        <?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
            <li>
                <a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
                <?php echo ($isFile == 1)
                    ? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
                    : JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
                </a>
            </li>
        <?php } ?>

        <?php if ($isAdmin || $isSuperAdmin) { ?>
            <li>
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
                    <?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
                    <span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
                </a>
            </li>
        <?php } ?>
    </ul>
</li>

changing it to
<?php if ($config->get('creatediscussion')) { ?>
    <li><a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
            <?php echo ($totalDiscussion == 1)
                ? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
                : JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
        </a></li>
<?php } ?>
<?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
    <li>
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
            <?php echo ($totalBulletin == 1)
                ? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
                : JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
        </a>
    </li>
<?php } ?>
<?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
    <li>
        <a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
        <?php echo ($isFile == 1)
            ? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
            : JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
        </a>
    </li>
<?php } ?>

<?php if ($isAdmin || $isSuperAdmin) { ?>
    <li>
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
            <?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
            <span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
        </a>
    </li>
<?php } ?>

Regards

11 years 4 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

Thanks!

It worked just fine on the first page of the group, but when I enter a section, like videos, or events, the submenu return back.

How to make it work on all pages of the group?

Thanks

11 years 4 months ago
Licenses:

Hi,

here the steps to override it:
1. copy miniheader.php from [site root]/components/com_community/templates/jomsocial/layouts/groups/ to [site root]/templates/[frontend template folder]/html/com_community/layouts/groups/ (create the folders if not exist yet)
2. edit that file, at line 182

<li class="half">
    <a href="javascript:" data-ui-object="joms-dropdown-button">
        <?php echo JTEXT::_('COM_COMMUNITY_MORE'); ?>
        <svg viewBox="0 0 14 20" class="joms-icon">
            <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-arrow-down"></use>
        </svg>
    </a>
    <ul class="joms-dropdown more-button">
        <li class="hidden-desktop">
            <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>

        <?php if ($showEvents) { ?>
            <li class="hidden-desktop">
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=dispaly&groupid=' . $group->id); ?>">
                    <?php echo ($totalEvents == 1)
                        ? JText::_('COM_COMMUNITY_EVENTS_COUNT') . ' <span class="joms-text--light">' . $totalEvents . '</span>'
                        : JText::_('COM_COMMUNITY_EVENTS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalEvents . '</span>'; ?>
                </a>
            </li>
        <?php } ?>

        <?php if ($showPhotos) { ?>
            <li class="hidden-desktop">
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=display&groupid=' . $group->id); ?>">
                    <?php echo ($totalPhotos == 1) ?
                        JText::_('COM_COMMUNITY_PHOTOS_COUNT_SINGULAR') . ' <span class="joms-text--light">' . $totalPhotos . '</span>' :
                        JText::_('COM_COMMUNITY_PHOTOS_COUNT') . ' <span class="joms-text--light">' . $totalPhotos . '</span>'; ?>
                </a>
            </li>
        <?php } ?>

        <?php if ($showVideos) { ?>
            <li class="hidden-desktop">
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&groupid=' . $group->id); ?>">
                    <?php echo ($totalVideos == 1)
                        ? JText::_('COM_COMMUNITY_VIDEOS_COUNT') . ' <span class="joms-text--light">' . $totalVideos . '</span>'
                        : JText::_('COM_COMMUNITY_VIDEOS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalVideos . '</span>'; ?>
                </a>
            </li>
        <?php } ?>
        <?php if ($config->get('creatediscussion')) { ?>
            <li>
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
                    <?php echo ($totalDiscussion == 1)
                        ? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
                        : JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
                </a></li>
        <?php } ?>
        <?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
            <li>
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
                    <?php echo ($totalBulletin == 1)
                        ? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
                        : JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
                </a>
            </li>
        <?php } ?>
        <?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
            <li>
                <a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
                    <?php echo ($isFile == 1)
                        ? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
                        : JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
                </a>
            </li>
        <?php } ?>
        <?php if ($isAdmin || $isSuperAdmin) { ?>
            <li>
                <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
                    <?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
                    <span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
                </a>
            </li>
        <?php } ?>
    </ul>
</li>
change that code to
<li class="hidden-desktop">
    <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>

<?php if ($showEvents) { ?>
    <li class="hidden-desktop">
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=dispaly&groupid=' . $group->id); ?>">
            <?php echo ($totalEvents == 1)
                ? JText::_('COM_COMMUNITY_EVENTS_COUNT') . ' <span class="joms-text--light">' . $totalEvents . '</span>'
                : JText::_('COM_COMMUNITY_EVENTS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalEvents . '</span>'; ?>
        </a>
    </li>
<?php } ?>

<?php if ($showPhotos) { ?>
    <li class="hidden-desktop">
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=display&groupid=' . $group->id); ?>">
            <?php echo ($totalPhotos == 1) ?
                JText::_('COM_COMMUNITY_PHOTOS_COUNT_SINGULAR') . ' <span class="joms-text--light">' . $totalPhotos . '</span>' :
                JText::_('COM_COMMUNITY_PHOTOS_COUNT') . ' <span class="joms-text--light">' . $totalPhotos . '</span>'; ?>
        </a>
    </li>
<?php } ?>

<?php if ($showVideos) { ?>
    <li class="hidden-desktop">
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&groupid=' . $group->id); ?>">
            <?php echo ($totalVideos == 1)
                ? JText::_('COM_COMMUNITY_VIDEOS_COUNT') . ' <span class="joms-text--light">' . $totalVideos . '</span>'
                : JText::_('COM_COMMUNITY_VIDEOS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalVideos . '</span>'; ?>
        </a>
    </li>
<?php } ?>
<?php if ($config->get('creatediscussion')) { ?>
    <li>
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
            <?php echo ($totalDiscussion == 1)
                ? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
                : JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
        </a></li>
<?php } ?>
<?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
    <li>
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
            <?php echo ($totalBulletin == 1)
                ? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
                : JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
        </a>
    </li>
<?php } ?>
<?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
    <li>
        <a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
            <?php echo ($isFile == 1)
                ? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
                : JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
        </a>
    </li>
<?php } ?>
<?php if ($isAdmin || $isSuperAdmin) { ?>
    <li>
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
            <?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
            <span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
        </a>
    </li>
<?php } ?>

Regards

The following user(s) said Thank You: Pedro
11 years 4 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

Hi,

It's working just fine, thanks...

Why not in a future version to create a setting in admincp for us to select the number of menu itens to show on the main tab, or make it responsive, in a way that if there is enough space it will fill the entire bar, if not, it will send the itens into the submenu.

Thanks again

The following user(s) said Thank You: Susan
11 years 4 months ago
Licenses:

Hi,

you can put user voice at here:
uservoice.jomsocial.com/forums/101561-jo...ial-feature-requests

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