• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Add a sidebar without the visitor panel

Add a sidebar without the visitor panel

Brogan

XenForo moderator
Staff member
#1
Brogan submitted a new resource:

Add a sidebar without the visitor panel (version 1.0) - A useful option especially for Page nodes.

This functionality allows you to add a sidebar to a template, page, etc. without the visitor panel at the top.

So for example, this is how a standard sidebar is added to a page:
Code:
<xen:sidebar>
    <div class="messageText ugc baseHtml">
        This is a sidebar with the visitor panel
    </div>
</xen:sidebar>
And this is the result:
View attachment 26137


Using the new variable though we can add this:
Code:
<xen:sidebar>
    <div class="messageText ugc baseHtml">...
Read more about this resource...
 

CFodder

Well-known member
#2
Nice stuff Brogan, do you use Jaxel's portal. I've been trying to figure out how to apply it for that, have added the code to his sidebar and portal templates but doesn't seem to take effect.
 

Carlos

Well-known member
#4
I was looking for something like this. Wondered why my signup box/user info is automatically added, when I added my adspace.
 

ArnyVee

Well-known member
#7
Brogan, just to confirm, this will also work on 'pages', right?

Edit: Whoops, read the description way too quickly. It works also on pages :)
 

Adam Howard

Well-known member
#8
This will work too. Add to your Extra.css

PHP:
.sidebar .visitorPanel {
  display: none;
}
Credit on this actually goes to Shelley though. Found both threads when searching.
 
R

ragtek

Guest
#9
another way:
you can also set a template variable to hide it
Code:
<xen:container var="$noVisitorPanel">1</xen:container>