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

Keep sidebar on forum and thread view?

Discussion in 'XenForo Development Discussions' started by RickM, Oct 6, 2010.

  1. RickM

    RickM Well-Known Member

    Anyone tried or know if its possible to show the sidebar for other views? Ideally I want to show inside forums, on threads and obviously on the new post/new thread page too.

    Any ideas?

    EDIT FFS...I've gotta stop posting here. The template system is too easy to figure out! :D

    Ok - anyone stuck on this, do the following:

    If you put this at the bottom of say thread_view, you'll get a sidebar. Not tried putting propper data in it yet tho.

    <xen:sidebar>THIS IS MY SIDEBAR</xen:sidebar>
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The sidebar is applied using <xen:sidebar>content</xen:sidebar>

    You will need to make some template edits though.
    RickM likes this.
  3. ArnyVee

    ArnyVee Well-Known Member

    So, you can simply put <xen:sidebar>content</xen:sidebar> and you'll get a sidebar.

    But, how can you pull the 'who's online' and 'stats' onto those sidebars?
  4. Lawrence

    Lawrence Well-Known Member

    You would need to create an addon to do this for users online and stats, as the board stats and online variables are registered to the forum_list template and not other templates.
  5. RickM

    RickM Well-Known Member

  6. MikeMpls

    MikeMpls Well-Known Member

    I'm guessing this thread pre-dates the ad templates? I was pleasantly surprised to see that if a sidebar is activated, the sidebar ads automatically show up. For just ads I need no content, only this:

    <xen:if is="!{$visitor.user_id}">
    The "Sign Up Now!" button also seems to appear by default in any sidebar for an unregistered user. :)
  7. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page