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

Show some code for some specific threads

Discussion in 'XenForo Questions and Support' started by Puntocom, May 4, 2011.

  1. Puntocom

    Puntocom Well-Known Member

    Hi! I want to show a code for several threads. I have put this in ad_below_top_breadcrumb but it doesn't show anything when loading thread id 907, any idea?
    <xen:if is="{$thread.thread_id}==907">
    show this in thread 907
    thank you in advance
  2. James

    James Well-Known Member

    Have you checked if the $thread variable is available in the ad_below_top_breadcrumb template?
  3. Puntocom

    Puntocom Well-Known Member

    No, how can I do that? what should I do in case it's not available?
  4. James

    James Well-Known Member

    If you put:
    {xen:helper dump, $thread}
    into the template and it returns an array then it is available.

    If it returns NULL, it's not available and you'll need an alternative.
    Jake Bunce and Puntocom like this.

Share This Page