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

XF 1.1 Conditional for forumlist?

Claudio

Well-known member
#1
I want to display an ad on the forum_list template only, so I would like to know which is the conditional to avoid this ad to be shown in other templates like thread_view and thread_list.

By the way...I´m displaying the ads on the sidebar and I have integrated the sidebar into both thread templates.
 

MichaelDance

Well-known member
#2
Edit the node_list template.

so its like:

Code:
<xen:require css="node_list.css" />
Advert code here
<xen:if hascontent="true">
<fieldset>
    <ol class="nodeList sectionMain" id="forums">
    <xen:contentcheck>
        <xen:foreach loop="$renderedNodes" value="$node">{xen:raw $node}</xen:foreach>
    </xen:contentcheck>
    </ol>
   
    <xen:if is="{$newDiscussionButton}"><div class="nodeListNewDiscussionButton">{xen:raw $newDiscussionButton}</div></xen:if>
</fieldset>
</xen:if>
 

Claudio

Well-known member
#3
I´m displaying the ads on the sidebar...

is just that I´m using the sidebar in thread_view and thread_list and I don´t know which conditional I should set to display X ad only on forum_list