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

Not a bug "ad_forum_view_above_node_list" Template doesn't work

Russ

Well-known member
#2
It's for when viewing a forum which has sub-forums:

Screenshot_6.png

forum_view is inside a node itself, and if there's no sub-forums there's no nodes inside the forum_view.
 

Mike

XenForo developer
Staff member
#3
As noted, it's specifically when there are nodes:
Code:
<xen:if is="{$renderedNodes}">
    <xen:include template="ad_forum_view_above_node_list" />
    <xen:include template="node_list" />
    <xen:if is="{$newDiscussionButton}">
        <div class="nodeListNewDiscussionButton">{xen:raw $newDiscussionButton}</div>
    </xen:if>
</xen:if>
I hesitate to change it now, but you can easily move the include up and outside the if tag, if that suits your needs.
 

Mike

XenForo developer
Staff member
#6
Note that the "forum_view" reference in the template name is referring to the template it applies to (forum_view). The main page is the forum_list template.