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

XF 1.2 First post of thread only

Discussion in 'Styling and Customization Questions' started by Da Bookie Mon, Aug 27, 2013.

  1. Da Bookie Mon

    Da Bookie Mon Well-Known Member

    I can't remember what the "if" is called to add some content to only the 1st post of a thread?
  2. Chris D

    Chris D XenForo Developer Staff Member

    I'm on phone but its something like

    {$post.position} == 0
    Shelley and Da Bookie Mon like this.
  3. Shelley

    Shelley Well-Known Member

    Yeah I originally had the following if this is related to the threadstarter resource i submitted but preferred it better with it being shown in every post.

    <xen:if is="{$post.user_id} == {$thread.user_id} && {$post.position} == 0"><span class="helper"></span></xen:if>
  4. Da Bookie Mon

    Da Bookie Mon Well-Known Member

    Thanks! Working on a add-on change to show ad in first post, the add-on shows it in first unread post currently

Share This Page