XF 2.2 Need help with template

Use conditional in forum_view template so... Try this
Find
HTML:
<xf:pageaction if="$forum.canCreateThread() OR $forum.canCreateThreadPreReg()">
    <xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write" rel="nofollow">
        {{ phrase('post_thread') }}
    </xf:button>
</xf:pageaction>
Replace by
HTML:
<xf:if is="$forum.node_id == X">
    your custom content...
    <xf:else />
    <xf:pageaction if="$forum.canCreateThread() OR $forum.canCreateThreadPreReg()">
        <xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write" rel="nofollow">
            {{ phrase('post_thread') }}
        </xf:button>
    </xf:pageaction>
</xf:if>
 
Back
Top Bottom