XF 1.5 Disable likes on Recent Activity

GKBlaze

Member
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.
 

Brogan

XenForo moderator
Staff member
There is no configurable option for that.

You can though edit the news_feed template like so:
Rich (BB code):
<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:include>
            </xen:if>
        </xen:foreach>
    </ol>
<xen:else />
    {xen:raw $noContentHtml}
</xen:if>
Note the added code in orange.
 
Top