ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 3513

Add a sidebar without the visitor panel

by Bi0S - 05-04-2017 - 02:58 AM
#1
Compatible XF Versions:
  • 1.0
  • 1.1
  • 1.2
  • 1.3
  • 1.4
  • 1.5
This resource is not affiliated with XenForo Ltd.

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:
[Image: with-png.26137]


Using the new variable though we can add this:
Code:
<xen:sidebar>
   <div class="messageText ugc baseHtml">
       <xen:container var="$noVisitorPanel">1</xen:container>
           <xen:if is="!{$noVisitorPanel}">
               This is a sidebar without the visitor panel
           </xen:if>
   </div>
</xen:sidebar>

Which gives you this:

[Image: without-png.26138]
Reply

Users browsing: 1 Guest(s)