XF 1.5 Targeting a specific thread

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?


Well-known member
best way would be to use a conditional, and place it in one of the ad templates
<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
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.