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 as Group landing page

10 years 11 months ago
  • Andre's Avatar
    Topic Author
  • Andre
  • Offline
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 1
Licenses:
JomSocial Expired

Hello team,

How can I, preferably via overrides, have the Group's landing page set to Discussions instead of Recent Activities? Would also like to change the Group's menu order to; Discussions, Announcements, Recent Activities, Description.

Thanks,
Andre

The following user(s) said Thank You: Ken Hiatt
10 years 11 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Andre,

1. Add this code inside this file components/com_community/templates/default/groups.viewgroup.php :

<script>
joms.jQuery( document ).ready(function() {
		joms.jQuery('#cTab-3 a').trigger('click');
	});
</script>
2. edit the same file and change the html position for this code (tab code) :
<ul class="cPageTabs cResetList cFloatedList clearfix">
          <li <?php if($isMember || $isSuperAdmin || !$config->get('lockgroupwalls')) {echo 'class="cTabCurrent"';} else if($isPrivate){echo 'class="cTabDisabled"';} ?>>
            <a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_RECENT_ACTIVITIES');?><?php if($alertNewStream){ echo '<span></span>'; } ?></a>
          </li>
          <li <?php if(!$isMember && !$isSuperAdmin && $config->get('lockgroupwalls')) {echo 'class="cTabCurrent"';} ?> >
            <a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_GROUPS_DESCRIPTION');?></a>
          </li>
          <?php if($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
          <li <?php if($isPrivate && !$isMember && !$isSuperAdmin) {echo 'class="cTabDisabled"';} ?> >
            <a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_GROUPS_BULLETIN');?><?php if($alertNewBulletin){ echo '<span></span>'; } ?></a>
          </li>
          <?php } ?>
          <?php if($config->get('creatediscussion') ){?>
          <li <?php if(!$isMember && !$isSuperAdmin && $isPrivate) { echo 'class="cTabDisabled"'; } ?> >
            <a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_GROUPS_DISCUSSION');?><?php if($alertNewDiscussion){ echo '<span></span>'; } ?></a>
          </li>
        </ul> <?php }?>

I hope you can solve this by youself, we cant help you further with this hack issue.

thank you

10 years 11 months ago
  • Andre's Avatar
    Topic Author
  • Andre
  • Offline
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi Dimas,

The most important was solved via script and landing tab is now Discussions. Changing the html position will be left for another day as it's proving rather challenging...

Thanks.

10 years 11 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

You're welcome, just let me know if you need more help

10 years 11 months ago
  • Andre's Avatar
    Topic Author
  • Andre
  • Offline
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 1
Licenses:
JomSocial Expired

Since you asked, I'd appreciate if you could send me the updated code to change the html position as I'm a bit nervous about messing up the code and killing important functions. Only if it's easy for you since the order of the tabs was not the most important point to be solved.

Cheers,
Andre

10 years 11 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

I think if you solved this without rearranged the position, I will mark this issue as resolved now.

10 years 11 months ago
  • Andre's Avatar
    Topic Author
  • Andre
  • Offline
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 1
Licenses:
JomSocial Expired

yep, ok.

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