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

XF 1.4 Conversation Ads (Need message id condition in conversations)

maxicep

Active member
#1
Hello

I want to show an advertisement just in conversations.

When i write the ad_message_body template this:

<xen:if is="{$message.conversation_id}">
ad code here
</xen:if>

This code shows the ads, every post of conversations. I want just ads on first 3 posts of conversation.

Is there any condition for this?
 

Brogan

XenForo moderator
Staff member
#3
Ah yes, so there is.

I never thought to check for a differently named param.

(I deleted my previous post to avoid causing confusion.)