Stockwalker
Active member
I have a photo I would like to include in every thread view, above or below the breadcrumb. How do I achieve that?
Last edited:
<xen:if is="{$contentTemplate} == 'thread_view'">
</xen:if>
<xen:if is="{$contentTemplate} == 'thread_view'">
<div style="width: 728px; height: 90px; background: #428bca; margin: 0 auto; color: #fff; line-height: 90px; text-align: center; ">LEADERBOARD</div>
</xen:if>
ur awesomeYou can use the ad_above_top_breadcrumb template and a conditional.
https://xenforo.com/community/resources/conditional-statements.1604/
Mainly this conditional.
Code:<xen:if is="{$contentTemplate} == 'thread_view'"> </xen:if>
Example:
Code:<xen:if is="{$contentTemplate} == 'thread_view'"> <div style="width: 728px; height: 90px; background: #428bca; margin: 0 auto; color: #fff; line-height: 90px; text-align: center; ">LEADERBOARD</div> </xen:if>
View attachment 150014
I don't think that conditional works in that template...I tried and it does not work.am I supposed to put that into
<xen:hook name="ad_thread_view_above_messages" here />
or outside that function? I tried outside; didnt work
We use essential cookies to make this site work, and optional cookies to enhance your experience.