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

Get the current forum being viewed?

Discussion in 'XenForo Development Discussions' started by bottiger, Nov 17, 2012.

  1. bottiger

    bottiger Active Member

    How do I get the current id of the forum being viewed so I can do something like this?

    if(forum == 1)
    foo
    else if(forum == 5)
    bar
     
  2. Russ

    Russ Well-Known Member

  3. bottiger

    bottiger Active Member

    I am interested in doing this in a plugin instead of a template.
     
    Russ likes this.
  4. bottiger

    bottiger Active Member

    bump (am I allowed to?)
     

Share This Page