View Full Version : Sidebar (like) class
MaryTheG(r)eek
07-07-2011, 08:02 AM
Hello,
Which class do I need to use to show a sidebar block in in a custom vB page, but having in mind that:
I don't want to show any content of the native vB sidebar (eg I want to include a custom search box).
The class(-es) must be available even to those members who have just the vBulletin forum (without CMS).Greatfull
Maria
Jeff Ledger
07-07-2011, 08:29 AM
If you are running firefox, use firebug, it can easily tell you what class and which template has been used.
You will probadly get st like this, just a example there are some collapsed class.
ul id="sidebar" style="opacity: 1;">
<li>
<div class="block smaller">
<div class="blocksubhead">
<div class="widget_content blockbody floatcontainer">
</div>
<div class="underblock"></div>
</li>
<li>
</ul>
Not only for the sidebar but in general.
Jeff
MaryTheG(r)eek
07-07-2011, 09:12 AM
@Jeff
Thank you for your reply but your code shows only the content (see the attachment). I also need the outline block and the block header.
By the way I seen that you're calling the class widget_content blockbody. Is this including in the standard css files?
Maria
vbresults
07-07-2011, 08:15 PM
You do not need the CMS to access the sidebar layout. Copy the sidebar.css stylesheet into and save it as a new template, change #sidebar and #sidebar_container to classes, change the descending css to match the id > class change, and embed the customized stylesheet in whatever page you plan to use this in (hopefully with a plugin). Check out the block_html template for the exact markup to use.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.