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

XF 1.5 $thread.reply_count

Discussion in 'XenForo Questions and Support' started by dethfire, Aug 8, 2016.

  1. dethfire

    dethfire Well-Known Member

    Does $thread.reply_count work in thread_view?
     
  2. EQnoble

    EQnoble Well-Known Member

  3. dethfire

    dethfire Well-Known Member

    hmmm this is not working for me

    <xen:if is="{$thread.reply_count} == 0">
    <xen:container var="$head.robots"><meta name="googlebot" content="noindex" /></xen:container>
    </xen:if>
     
  4. EQnoble

    EQnoble Well-Known Member

    Check if you have some kind of caching going on, I just tested your code and it adds the noindex right before the end of the head as expected.

    Also just for the sake of sanity make sure you are testing this viewing a thread that actually has 0 replies.
     
    dethfire likes this.

Share This Page