vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Sidebar (like) class (https://vborg.vbsupport.ru/showthread.php?t=266415)

MaryTheG(r)eek 07-07-2011 09:02 AM

Sidebar (like) class
 
Hello,

Which class do I need to use to show a sidebar block in in a custom vB page, but having in mind that:
  1. I don't want to show any content of the native vB sidebar (eg I want to include a custom search box).
  2. 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 09: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.

Quote:

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 10:12 AM

1 Attachment(s)
Quote:

Originally Posted by Jeff Ledger (Post 2217717)
@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 09: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.


All times are GMT. The time now is 02:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete