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)
-   -   Help me move sidebar (https://vborg.vbsupport.ru/showthread.php?t=316439)

Easy5s.net 01-05-2015 11:29 PM

Help me move sidebar
 
I want to move up as shown in figure sidebar. Thank

https://vborg.vbsupport.ru/external/2015/01/37.png

ForceHSS 01-06-2015 12:07 AM

You will need to give a link so others can get the code in case you have custom coding

Easy5s.net 01-06-2015 12:55 AM

I use the default style. Help me with default style pls

ForceHSS 01-06-2015 01:21 AM

I am not a skin coder wait for one to reply and what vb version are you using

Easy5s.net 01-06-2015 03:13 AM

vb version 4.2.2

HM666 01-06-2015 11:00 PM

1 Attachment(s)
You want it to kinda look like XenForo where its directly under the header and the breadcrumbs are to the left of it? Be sure to make a backup before starting just in case.

You will need to edit two templates. FORUMHOME & navbar. To do this do the following:

1. Login to your AdminCP.
2. Scroll down on the left side and find Styles & Templates > Style Manager. Click on the Style Manager link.
3. Find the style you want to edit in the list and click the drop down menu on the far right and choose "Edit Templates" That list of templates in the box is where you will find the templates that I stated.
4. Find the template you need to edit & double click on it to open it, then do your edit and save.

To accomplish that try the following: Open your FORUMHOME template and find:

Code:

<vb:if condition="$show['sidebar']">
        <div id="content_container" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>">
                <div id="content" <vb:if condition="$sidebar_class">class="{vb:raw $sidebar_class}"</vb:if>>
        </vb:if>

And delete it and then save the template. now open your navbar template and find:

Code:

<div class="body_wrapper">
And replace it with:

Code:

<div class="body_wrapper">
<vb:if condition="$show['sidebar']">
        <div id="content_container" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>">
                <div id="content" <vb:if condition="$sidebar_class">class="{vb:raw $sidebar_class}"</vb:if>>
        </vb:if>

See attachment for result.


All times are GMT. The time now is 04:07 AM.

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.02719 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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