• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Which template to use to insert photo above the breadcrumbs in thread view?

Steve F

Well-known member
#2
You 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>
upload_2017-3-19_8-44-48.png
 
#3
You 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
ur awesome
 
#11
I don't mind. But I tried adding it both above and below the hook, and it does not display at all. Meanwhile, if I don't put it into your conditional, it shows up. so I guess whats wrong?