Despite the User Points being disabled (as per the screen shot). The XXXXX has liked XXXXXXX Photos activity stream is still showing. Just tried this on the demo website here and can recreate it. Is this a bug, or can these messages not be stopped. It's just my social stream is filling with these as it's quite a heavy photo site and sometimes that's all you can see for a couple of screens.
Hi, Matt.
You can do that by editing 3 files:
ROOT/components/com_community/templates/default/activities.index.php
ROOT/components/com_community/templates/default/frontpage.index.php
ROOT/components/com_community/templates/default/profile.index.php
Copy them to ROOT/templates/your_current_template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them.
Edit activities.index.php in line 31, change this:
<li id="<?php echo $act->app; ?>-newsfeed-item-<?php echo $act->id; ?>" class="stream feed-<?php echo $act->app; ?>" data-streamid="<?php echo $act->id; ?>">
<?php if($act->app != 'photo.like') { ?>
<li id="<?php echo $act->app; ?>-newsfeed-item-<?php echo $act->id; ?>" class="stream feed-<?php echo $act->app; ?>" data-streamid="<?php echo $act->id; ?>">
</li>
</li>
<?php } ?>
<div class="cActivity-LoadLatest joms-latest-activities-container">
<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
</div>
<?php /* ?>
<div class="cActivity-LoadLatest joms-latest-activities-container">
<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
</div>
<?php */ ?>
<?php
$this->view('profile')->modProfileUserstatus();
if ( JFactory::getUser()->guest != 1 ) {
?>
<div class="joms-latest-activities-container" data-actid="<?php echo JFactory::getApplication()->input->get('actid', -1, 'INT'); ?>">
<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
</div>
<?php } ?>
<?php /*
$this->view('profile')->modProfileUserstatus();
if ( JFactory::getUser()->guest != 1 ) {
?>
<div class="joms-latest-activities-container" data-actid="<?php echo JFactory::getApplication()->input->get('actid', -1, 'INT'); ?>">
<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
</div>
<?php }*/ ?>
Almost...
It's removed them all from the stream, but the right hand column of modules has moved to under the more button. I've followed the instructions twice just in case I've missed something and twice I've end up with the same thing.
I've cleared the cache, but still the same.
Hi, Matt.
I'm sorry there was a slight mistake in my code. So please revert any changes in frontpage.index.php and try again with this:
Edit frontpage.index.php in line 58, change this:
<div class="cActivity-LoadLatest joms-latest-activities-container">
<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
</div>
<?php /* ?>
<div class="cActivity-LoadLatest joms-latest-activities-container">
<a id="activity-update-click" class="btn btn-block" href="javascript:void(0);"></a>
</div>
<?php */ ?>