1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Recent Activity stream - not show Likes ?

Discussion in 'XenForo Questions and Support' started by gordy, Mar 10, 2011.

  1. gordy

    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)
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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:

    <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}" />
    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.
    gordy likes this.
  4. gordy

    gordy Well-Known Member

    Thank you very much (y)

Share This Page