<xf:if is="in_array($post.position % $xf.options.messagesPerPage, [0, 9, 19])">
Show Content...
</xf:if>
My thread view shows 20 posts per page, here is a snippet that will show your content in the 1st, 10th and 20th posts.
I use it in "Post: Below message content" in the advertisement control panel to show ads, 3 per page.HTML:<xf:if is="in_array($post.position % $xf.options.messagesPerPage, [0, 9, 19])"> Show Content... </xf:if>
<xf:if is="$__globals.thread.reply_count == 0 OR $post.position == $__globals.thread.reply_count - 1">
content
</xf:if>
<xen:hook name="header_logo">
<div id="logo"><a href="{$logoLink}">
<span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
<xen:if is="{xen:property uix_logoText}"><h2 class="uix_logoText"><xen:if is="{xen:property uix_logoTextIcon}"><i class="uix_icon {xen:property uix_logoTextIcon}"></i></xen:if>{xen:property uix_logoText}</h2><xen:else /><img src="{xen:property headerLogoPath}" alt="{$xenOptions.boardTitle}" /></xen:if>
<xen:if is="{xen:property uix_sloganText}"><div class="uix_slogan">{xen:property uix_sloganText}</div></xen:if>
<xen:if is="{$forum.node_id} == 25">
<img src="{xen:property imagePath}/uix_dark/tabletop.png" alt="{$xenOptions.boardTitle}" />
<xen:elseif is="{$forum.node_id} == 3" />
<img src="{xen:property imagePath}/uix_dark/othergames.png" alt="{$xenOptions.boardTitle}" />
Thanks but that didn't work.Probably something like this
HTML:<xf:if is="!in_array({$__globals.template}, ['register_form', 'login'])"> content </xf:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.