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.

Adding an extra tab to group

10 years 7 months ago
  • Steven's Avatar
    Topic Author
  • Steven
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi, I hope I am posting this question in the correct forum area.

I am wondering if it is possible to add an extra tab to the Recent Activities, Description, Announcements, Discussions tool bar with a group?

Assuming it is, I am wonder how this can be done. Ideally, I am looking to display some content, perhaps an iframe within that area.

Appreciate any advice you can offer.

Many thanks

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

Hi Steven,

I cant give you the solution for this since this is beyond our support, but I only give you bit pointer.. please you edit this file components/com_community/templates/default/groups.viewgroup.php, and look "Application Tabs' Toolbar" code..

10 years 7 months ago
Licenses:

Hi, Steven.

This can be done with a simple Magic Mike's hack :)

Copy this file;

ROOT/components/com_community/templates/default/groups.viewgroup.php

to:

ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them)

Look for this code (lines 254-258):

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

Change it to this:
<?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>
<?php }?>
          <li <?php if(!$isMember && !$isSuperAdmin && $isPrivate) { echo 'class="cTabDisabled"'; } ?> >
            <a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_GROUPS_MY_TAB_NAME');?></a>
          </li>
        </ul>

Change language constant name COM_COMMUNITY_GROUPS_MY_TAB_NAME to something that will fit your needs. Then create new language override for it as described here:

www.inmotionhosting.com/support/edu/joom...ew-language-override

Now look in file for: <!-- Tab Content : Discussions --> (line 370)

And add below:
<div class="cTabsContent">
<div class="my-class">
<!-- some content -->
</div>
</div>

Now just add some content inside divs.

I attached demo file.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you

This message has an attachment file.
Please log in or register to see it.

The following user(s) said Thank You: John, Danny, Susan
10 years 7 months ago
  • Steven's Avatar
    Topic Author
  • Steven
  • Offline
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Licenses:
JomSocial Expired

Thank you so much Michael ..... worked perfectly. I really appreciated your help and advice with this.
regards
Steve

The following user(s) said Thank You: John
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