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

XF 1.2 Add ad_forum_view_below_thread_list

#1
Hello,

I would like to add some content at ad_forum_view_below_thread_list but there have no such template.

Can you suggest how to create one? or how to add ad_forum_view_below_thread_list?

Thank you.
 

Brogan

XenForo moderator
Staff member
#2
Use the ad_below_content template and use a conditional statement for the templates you want it to show on.
 

Brogan

XenForo moderator
Staff member
#6
Yes, you need to use the template name.

How can I find out which template to edit?
Using your browser, view the page source and look for a line of code near the top of the page which begins
<div id="content" class="; the class is the name of the template. So for the main forum page, the line of code is:<div id="content" class="forum_list">, which makes the template forum_list.

http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-181112
 
#7
I found the template and add the code:

Code:
<xen:if is="{$discussionList}">
ad code
</xen:if>
But nothing happen! Can you suggest what is wrong? Thanks.
 

Brogan

XenForo moderator
Staff member
#8
{$discussionList} is not the name of the template.

Refer to my previous post for how to get the template/page name.
 
#9
Sorry, I now find the class=forum_view but it's also not work!
Code:
<xen:if is="{$forum_view}">
ad code
</xen:if>
Can you suggest what is wrong? Thanks.
 

Brogan

XenForo moderator
Staff member
#16
Using your browser, view the page source and look for a line of code near the top of the page which begins
<div id="content" class="; the class is the name of the template. So for the main forum page, the line of code is:<div id="content" class="forum_list">, which makes the template forum_list.
 

Brogan

XenForo moderator
Staff member
#18
From the resource I linked you to previously:

How can I show content on a specific page?
<xen:if is="{$contentTemplate} == 'xyz'">
This content will show on the xyz template
</xen:if>