Recent Activity stream - not show Likes ?

gordy

Well-known member
Is there any way to not show Likes on the Recent Activity stream?

A little too cluttered and superfluous for my tastes (not content worthy)
 
There is no way of filtering content on the news feeds currently.

You would need an add-on or code edits to remove certain content from it.
 
I found a bad solution if you are interested. O_o

Admin CP -> Appearance -> Templates -> news_feed_item

Surround the contents of the template in a condition, like this:

Code:
<xen:if is="{$item.action} != 'like'">

<li id="item_{$item.news_feed_id}" class="event primaryContent NewsFeedItem" data-author="{$item.username}">

	<xen:avatar user="$item" size="s" class="icon" />
	
	<div class="content">		
		{xen:raw $itemTemplate}
		
		<xen:datetime time="{$itemDate}" />
	</div>
</li>

</xen:if>

The problem is that it affects all news feeds, not just Recent Activity. And it messes up the pagination of the feed items. For example, if there is normally 15 items per page, and 6 of the items on a particular page are likes, then that page will only show 9 items.

This is the best you can do with templates. You need an addon to do this properly. If you are a programmer then you can post in the Development Questions forum for help with this. Or post an Add-on Request and some one may be able to write this for you.
 
Top Bottom