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 The Forum Heroes, Aug 27, 2013.

  1. The Forum Heroes

    The Forum Heroes 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 The Forum Heroes 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.

    Code:
    <xen:if is="{$post.user_id} == {$thread.user_id} && {$post.position} == 0"><span class="helper"></span></xen:if>
     
  4. The Forum Heroes

    The Forum Heroes 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