Want to add some stuff after the first post in specific forums..

Mr. Goodie2Shoes

Well-known member
#3
so... it will be something like:
Code:
<xen:if is="in_array({$forum.node_id}, array(x, y, z))">
<xen:if is="{$post.position} == 0 AND !{$message.conversation_id}">
This content will show after the first post in a thread
</xen:if>
</xen:if>
?

What will be the template name? message?
 

Brogan

XenForo moderator
Staff member
#5
All in the FAQ:

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

But yes, the ad_ template is the one to use in this instance.
 

Mr. Goodie2Shoes

Well-known member
#7
awesome... it works! :D
I just added the code:
Code:
<xen:if is="in_array({$forum.node_id}, array(x, y, z))">
<xen:if is="{$post.position} == 0 AND !{$message.conversation_id}">
<li class="message">
This content will show after the first post in a thread
</li>
</xen:if>
</xen:if>
at the very bottom of the "message" template :D

Brogan, many thanks! and you can close the discussion now:D
 
Top