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

XF 1.2 Conditional: Don't show on single post

Discussion in 'XenForo Questions and Support' started by Bram, Jan 2, 2014.

  1. Bram

    Bram Well-Known Member

    I have used the search function and google but can't find it anymore what the conditional statement is to hide content/adsense when there is only a single post in a thread.

    Can anybody point me to the right answer?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You could use $thread.reply_count.
     
    Bram likes this.
  3. Bram

    Bram Well-Known Member

    Thanks a lot, that did it :)

    @Brogan is there a conditional for the last post of a thread as well?
     
    Last edited: Jan 4, 2014
  4. RoldanLT

    RoldanLT Well-Known Member

    Maybe something like this:
    $thread.reply_count = 20

    Assuming your forum settings for thread displays 20 post for every thread page.
     
    Bram likes this.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Not sure if this will work but you can try $thread.last_post_id
     
    Bram likes this.

Share This Page