1. 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)

Discussion in 'XenForo Questions and Support' started by maxicep, Nov 16, 2014.

  1. maxicep

    maxicep Active Member


    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

    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?
  2. NixFifty

    NixFifty Well-Known Member

    I believe $message.position_on_page is available but that's off the top of my head, so you'll need to check.
    Brogan likes this.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Ah yes, so there is.

    I never thought to check for a differently named param.

    (I deleted my previous post to avoid causing confusion.)
    NixFifty likes this.
  4. maxicep

    maxicep Active Member

    So, anyone tried or know it ? :)
  5. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page