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

XF 1.1 Can't seem to get thread ID via $threadId

Discussion in 'XenForo Questions and Support' started by limboclub, Sep 13, 2013.

  1. limboclub

    limboclub Member

    What is the correct variable to use to output the thread ID? Trying to use it in the template ad_thread_view_above_messages

    This does not work:

    How can I show content in a specific thread?
    <xen:if is="{$threadId} == x">
    This content will show in thread x

    Via: http://xenforo.com/community/resources/conditional-statements.1604/
  2. KenSmith

    KenSmith Active Member

    I haven't tested it, but I bet {$thread.thread_id} would do it.
  3. Etchel

    Etchel Member

    I'm quite confused of thi
    <xen:if is="{$threadId} == 'x'">
    You might have forgotten the apostrophe between the x value
  4. limboclub

    limboclub Member

    Yeah - that does it.

    I hadn't set it up to use $threadId in the PAGE CONTAINER template.

Share This Page