You should be able to do it via the widget settingsHow i can hide forum statistic and members online from guest and registered members
You should be able to do it via the widget settings
Oh sorryi saw there but there is only options for position and not for user groups.
Added Conditional Exceptions
49. The location field is specified50. The website field is specified51. The signature is indicated.52. The user activated53. Awaiting email confirmation (after editing):54. Email is not valid
<xf:if is="$post.position % $xf.options.messagesPerPage == $xf.options.messagesPerPage - 1 OR $post.position == $thread.reply_count AND $thread.reply_count % $xf.options.messagesPerPage > 1">
Ad code here <xf:ad position="post_above_content" arg-post="{$post}" />
</xf:if>
<xf:if is="$template != 'forum_list'">
Show content...
</xf:if>
<xf:if is="$template == 'forum_list'">
Show content...
</xf:if>
<xf:if is="{$forum.node_id} != x">
does not work under container content above option for me.<xf:if is="{{ $xf.visitor.hasPermission('Dadparvar_PricingTables', 'Can_See_PricingTable_One') }}">
User will see this text if s/he has "Can_See_PricingTable_One" permission of "Dadparvar_PricingTables" group.
</xf:if>
also is it possible to show content between the two post blocks instead of inside the post?
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1>
ad_message_below
!in_array({$thread.node_id}, array(nodeid))
this.it did work fine on xf1. i think this is the conditional post that worked for me:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 1>
in template:
ad_message_below
cannot find anything for xf2. also finding it hard to get the conditional statement work to hide ads in specific forums. even that worked great in xf1 using!in_array({$thread.node_id}, array(nodeid))
this.
it does'nt display ads on the last post of the last page if it is not full.There was an old XF1.5-question about an Ad in the last post on a page only if there are more than 2 posts on that page. @Brogan answered it and this should work in XF2.0
Code:<xf:if is="$post.position % $xf.options.messagesPerPage == $xf.options.messagesPerPage - 1 OR $post.position == $thread.reply_count AND $thread.reply_count % $xf.options.messagesPerPage > 1"> Ad code here <xf:ad position="post_above_content" arg-post="{$post}" /> </xf:if>
This goes in forum_list template right? Sorry just trying to make sure I put things in the right place.There was an old XF1.5-question about an Ad in the last post on a page only if there are more than 2 posts on that page. @Brogan answered it and this should work in XF2.0
Code:<xf:if is="$post.position % $xf.options.messagesPerPage == $xf.options.messagesPerPage - 1 OR $post.position == $thread.reply_count AND $thread.reply_count % $xf.options.messagesPerPage > 1"> Ad code here <xf:ad position="post_above_content" arg-post="{$post}" /> </xf:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.