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.

Activity Stream

9 years 8 months ago
  • BV's Avatar
    Topic Author
  • BV
  • Offline
  • Junior Boarder
  • Posts: 105
  • Thank you received: 2
Licenses:
JomSocial Expired

Hello,
I wonder how I can remove from the activity stream the lines:
Hide this post
Ignore this user
Delete this post

Thank you very much,

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

Hi BV,

You can edit this file components/com_community/templates/actvities.stream.actions.php, remove this code :

<?php if($permission->hideStream){ ?>
      <li>
        <a href="#" data-action="hide" data-user-id="<?php echo $act->actor; ?>" data-stream-id="<?php echo $act->id; ?>" data-stream-type="<?php echo $appName; ?>">
          <i class="joms-icon-eye"></i><span><?php echo JText::_('COM_COMMUNITY_HIDE_ACTIVITY')?></span>
        </a>
      </li>
      <?php if($permission->ignoreStream){?>
      <li>
        <a href="#" data-action="ignore" data-user-id="<?php echo $act->actor; ?>" data-stream-id="<?php echo $act->id; ?>" data-stream-type="<?php echo $appName; ?>">
          <i class="joms-icon-minus-sign"></i><span><?php echo JText::_('COM_COMMUNITY_IGNORE_ACTIVITY')?></span>
        </a>
      </li>
      <?php } ?>
      <?php if($permission->editPost || $permission->deletePost){?>
      <li class="divider"></li>
      <?php }?>
      <?php }?>

and this code :
<?php if( $permission->deletePost ) { ?>
      <li>
        <a href="#" data-action="delete" data-stream-id="<?php echo $act->id; ?>" data-stream-type="<?php echo $appName; ?>">
          <i class="joms-icon-remove"></i><span><?php echo JText::_('COM_COMMUNITY_ACTIVITY_DELETE_POST')?></span>
        </a>
      </li>
    <?php } ?>

hope it helps.

thank you

9 years 8 months ago
  • BV's Avatar
    Topic Author
  • BV
  • Offline
  • Junior Boarder
  • Posts: 105
  • Thank you received: 2
Licenses:
JomSocial Expired

Hello Dimas,
Thank you, it worked. I think you meant: activities.stream.options.php rather than activities.stream.actions.php

Regards,

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

oh yeah, glad to know that !

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