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.

Discussions and Announcement links first in Groups toolbar

9 years 4 months ago
  • mark's Avatar
    Topic Author
  • mark
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

ISSUE SUMMARY:
Can I move the discussion and Announcement links in de groups toolbar? They are more important than the photos and videos etc.

Joomla 3.4/JS 4.1.5

9 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Mark,

You should modify and override this file components/com_community/templates/jomsocial/layouts/groups/miniheader.php, find and move this code :

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

to after line 160

and change this code position :
<?php if ($showPhotos) { ?>
                <li class="half hidden-mobile">
                    <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="half hidden-mobile">
                    <a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&task=display&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 } ?>

to that discussion / bulletin position

cheers!

9 years 3 months ago
  • mark's Avatar
    Topic Author
  • mark
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Great, thanks!!

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