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

XF 1.4 Recent Activity remove the Likes

Discussion in 'Styling and Customization Questions' started by New Joe, Nov 15, 2014.

  1. New Joe

    New Joe Active Member

    So on the 'Recent Activity' it always shows when members like posts/Threads

    On my site I'd like to take that away from being shown on the Recent Activity
    Is that possible some how?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    There is no configurable option for that.

    You can though edit the news_feed template like so:
    <xen:require css="events.css" />
    <xen:require css="news_feed.css" />
    <xen:require js="js/xenforo/news_feed.js" />
    <xen:if is="{$newsFeed}">
        <ol class="eventList">
            <xen:foreach loop="$newsFeed" value="$item">
                <xen:if is="{$item.action} != 'like'">  
                    <xen:include template="news_feed_item">
                        <xen:set var="$itemTemplate">{xen:raw $item.template}</xen:set>
                        <xen:set var="$itemDate">{$item.event_date}</xen:set>
    <xen:else />
        {xen:raw $noContentHtml}
    Note the added code in orange.
    Peace, cgunes and New Joe like this.
  3. New Joe

    New Joe Active Member

    Many thanks that worked a treat...

Share This Page