XF 2.1 banner before category (forum list)

interforo

Active member
Hello,
I need to place an adv banner right before a category on forum list.
What code should I use?
thanks
 
buy this one
 
or Andy products
 
Code:
<xf:macro name="depth1" arg-node="!" arg-extras="!" arg-children="!" arg-childExtras="!" arg-depth="1">
    <div class="block block--category block--category{$node.node_id}">
        <span class="u-anchorTarget" id="{$node.Data.getCategoryAnchor()}"></span>
        <div class="block-container">
            <h2 class="block-header">
                <a href="{{ link('categories', $node) }}">{$node.title}</a>
                <xf:if is="{$node.description}"><span class="block-desc">{$node.description|raw}</span></xf:if>
            </h2>
            <div class="block-body">
                <xf:macro template="forum_list" name="node_list"
                    arg-children="{$children}"
                    arg-extras="{$childExtras}"
                    arg-depth="{{ $depth + 1 }}" />
            </div>
        </div>
    </div>
  
----------------------code here-----------
<xen:if is="{$category.node_id} == 16">
<div id='yobee-middleinside'></div></xen:if> 
----------------------code here-----------
  
</xf:macro>

I have added the"code here" in template:
node_list_category
But the banner gets repeated along with the forum list page multiple times
Any suggestion?
 
Back
Top Bottom