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

XF 1.5 Disable likes on Recent Activity

Is there a way to disable "Likes" on recent activity page? A lot of my users are complaining about it but I can't find it anywhere in the admincp options to disable it or give users the option to disable it.

Any help will be greatly appreciated, thanks.


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.