XF 1.5 Targeting a specific thread

#1
I have some old threads that get a lot of traffic. I'd like to place some affiliate ads in them. Is there a way for me to push in a new post as the second post in the thread, or otherwise add some text to the top of a specific thread without editing another user's message?
 

Nudaii

Well-known member
#2
best way would be to use a conditional, and place it in one of the ad templates
Code:
<xen:if is="{$thread.thread_id} == x">
This content will show in thread x
<xen:elseif is="{$thread.thread_id} == y" />
This content will show in thread y
<xen:elseif is="{$thread.thread_id} == z" />
This content will show in thread z
<xen:else />
This content will show everywhere else
</xen:if>
 
#3
Thanks for the quick reply! That would be a lot of code to add though :( Let's say I want to put specific ads on 50 threads, that would be 50 "if's" along with ads codes. Maybe a bit too much in a template.
 
Top