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

Forum ID Conditional Needed

Discussion in 'XenForo Questions and Support' started by Michael, Mar 3, 2013.

  1. Michael

    Michael Active Member

    Hey everyone,

    I am wanting to show something within the post template but only within specific forums, does anyone know of the conditional to achieve this?

    Thank you.
     
  2. HenrikHansen

    HenrikHansen Well-Known Member

    Michael likes this.
  3. Lawrence

    Lawrence Well-Known Member

    For the message template which is included in the post template, you can use this:
    Code:
    <xen:if is="in_array({$thread.node_id},  array(6,12,14))">
    your stuff here
    </xen:if>
    replace the numbers in the array with the forumId's you are looking to use.
     
    Michael, Jake Bunce and HenrikHansen like this.

Share This Page