XF 1.5 Recent Activity template


New member
Hi all, had a problem I was hoping you could help with.

I'm trying to put the global news feed into another template for use on a different page. I have this code put into the template:

<div class="newsFeed">
<xen:include template="news_feed">
<xen:set var="$noContentHtml">{xen:phrase news_feed_is_currently_empty}</xen:set>
<div class="extra">
<xen:if is="{$visitor.user_id}"><a href="{xen:link account/news-feed}" class="button smallButton">{xen:phrase your_news_feed}</a></xen:if>
<xen:include template="news_feed_end">
<xen:set var="$itemLoaderUrl">{xen:link recent-activity}</xen:set>
<xen:include template="preview_tooltip" />

But it tells me that the news feed is empty, even though it's not when you go to url.com/recent-activity. I'm aware there needs to be a PHP callback but how do I do this? Would really appreciate it if someone could tell me what I need to do with the callback and also where to put the code please!
Top Bottom