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.

Removing Members and Photo Album App-Box

9 years 8 months ago
  • Andrew's Avatar
    Topic Author
  • Andrew
  • Offline
  • Fresh Boarder
  • Posts: 27
  • Thank you received: 0
Licenses:
JomSocial Expired

I would like to hide the Members and Photo Album app box within the groups. How do I do this?

See photo.

Attachment screenshot.jpg not found

Attachments:
9 years 8 months ago
Licenses:

Hi, Andrew.

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)

Then edit it and remove/comment this part:

<!-- Group Events @ Sidebar -->
      <?php if( $showEvents ){ ?>
      <div class="cModule app-box">
        <h3 class="app-box-header"><?php echo JText::_('COM_COMMUNITY_EVENTS');?></h3>

        <div class="app-box-content">
          <?php if( $events ){ ?>
          <ul class="cThumbDetails cResetList">
          <?php
          foreach( $events as $event )
          {
            $creator      = CFactory::getUser($event->creator);
          ?>
            <li>
              <b class="cThumb-Calendar cFloat-L">
                <b><?php echo CEventHelper::formatStartDate($event, JText::_('M') ); ?></b>
                <b><?php echo CEventHelper::formatStartDate($event, JText::_('d') ); ?></b>
              </b>
              <div class="cThumb-Detail">
                <div class="event-detail">
                  <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id.'&groupid=' . $group->id);?>" class="cThumb-Title">
                    <?php echo $event->title;?>
                  </a>
                  <div class="cThumb-Location">
                    <?php // echo $event->getCategoryName();?>
                    <?php echo $event->location;?>
                  </div>
                  <!-- <div class="eventTime"><?php echo JText::sprintf('COM_COMMUNITY_EVENTS_DURATION', JHTML::_('date', $event->startdate, JText::_('DATE_FORMAT_LC2') ), JHTML::_('date', $event->enddate, JText::_('DATE_FORMAT_LC2') )); ?></div> -->
                  <div class="cThumb-Members small">
                    <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewguest&groupid=' . $group->id . '&eventid=' . $event->id . '&type='.COMMUNITY_EVENT_STATUS_ATTEND);?>"><?php echo JText::sprintf((!CStringHelper::isSingular($event->confirmedcount)) ? 'COM_COMMUNITY_EVENTS_MANY_GUEST_COUNT':'COM_COMMUNITY_EVENTS_GUEST_COUNT', $event->confirmedcount);?></a>
                  </div>
                </div>
              </div>
            </li>
          <?php } ?>
          </ul>
          <?php } else { ?>
          <div class="cEmpty"><?php echo JText::_('COM_COMMUNITY_EVENTS_NOT_CREATED');?></div>
          <?php } ?>
        </div>
        <div class="app-box-footer">
          <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=display&groupid=' . $group->id );?>">
            <?php echo JText::_('COM_COMMUNITY_EVENTS_ALL_EVENTS');?>
          </a>
        </div>
      </div>
      <?php } ?>
      <!-- Group Events @ Sidebar -->

      <!-- Group Photo @ Sidebar -->
      <?php if( $showPhotos ){ ?>
      <?php // if($this->params->get('groupsPhotosPosition') == 'js_groups_side_bottom'){ ?>
      <?php if( $albums ) { ?>
      <div class="cModule cGroupPhotos app-box">
        <h3 class="app-box-header"><?php echo JText::_('COM_COMMUNITY_PHOTOS_PHOTO_ALBUMS');?></h3>

        <div class="app-box-content">
          <ul class="unstyled clearfix js-col-layout">
            <?php foreach($albums as $album ) { ?>
            <li class="js-col2">
              <a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=album&albumid=' . $album->id . '&groupid=' . $group->id);?>">
                <img class="cAvatar cMediaAvatar jomNameTips" title="<?php echo $this->escape( $album->name );?>" src="<?php echo $album->getCoverThumbURI();?>" alt="<?php echo $album->getCoverThumbURI();?>" />
              </a>
            </li>
            <?php } ?>
          </ul>
        </div>

        <div class="app-box-footer">
          <a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=display&groupid=' . $group->id );?>">
            <?php echo JText::_('COM_COMMUNITY_VIEW_ALL_ALBUMS').' ('.$totalAlbums.')';?>
          </a>
        </div>
      </div>
      <?php } ?>
      <?php // } ?>
      <?php } ?>
      <!-- Group Photo @ Sidebar -->

      <!-- Group Video @ Sidebar -->
      <?php if( $showVideos ){ ?>
      <?php // if($this->params->get('groupsVideosPosition') == 'js_groups_side_bottom'){ ?>
      <?php if($videos) { ?>
      <div class="cModule app-box">
        <h3 class="app-box-header cResetH"><?php echo JText::_('COM_COMMUNITY_VIDEOS');?></h3>

        <div class="app-box-content">
          <div class="row-fluid js-mod-video">
            <?php foreach( $videos as $video ) { ?>
            <div class="span6 bottom-gap">
              <a class="cVideo-Thumb jomNameTips" href="<?php echo $video->getURL(); ?>" title="<?php echo $video->title; ?>">
                <img src="<?php echo $video->getThumbnail(); ?>" class="cAvatar cMediaAvatar" />
                <b class="cVideo-Duration"><?php echo $video->getDurationInHMS(); ?></b>
              </a>
            </div>
            <?php } ?>
          </div>
        </div>

        <div class="app-box-footer">
          <a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&groupid='.$group->id); ?>">
            <?php echo JText::_('COM_COMMUNITY_VIDEOS_ALL').' ('.$totalVideos.')'; ?>
          </a>
        </div>
      </div>
      <?php } ?>
      <?php } ?>

From lines: 424 to 530.


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