XF 1.2 Add ad_forum_view_below_thread_list

ForexTalk

Member
Licensed customer
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.
 
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
 
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.
 
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.
 
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.
 
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>
 
Back
Top Bottom