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

XF 1.1 Recent Activity Template

#1
I am building a custom page and wish to use the output from the global Recent Activity page. However when I try to include the template for the feed it tells me it is empty when it isn't. Is there a special procedure to outputting the Recent Activity?

Code:
<div id="myDiv">
    <xen:include template="news_feed">
        <xen:set var="$noContentHtml">{xen:phrase news_feed_is_currently_empty}</xen:set>
    </xen:include>
</div>
 

Jake Bunce

XenForo moderator
Staff member
#2
There is PHP code to fetch the news feed items. This is done in the controller which then uses that template. See this file:

library/XenForo/ControllerPublic/RecentActivity.php

If you are creating a page node then you can use the callback feature to execute your own PHP code.