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)
-   -   Removing VB4 Sidebar's minimize button (https://vborg.vbsupport.ru/showthread.php?t=230881)

milsirhc 12-22-2009 08:55 PM

Removing VB4 Sidebar's minimize button
 
Hi,

I want to keep the sidebar on the forum permanent and do not want the users to minimize it. Is there a way to remove that button to do so?

Also, how can I make the sidebar to appear on all pages?

Shamil. 12-25-2009 02:26 AM

To remove collapse, remove this from FORUMHOME:

HTML Code:

<a id="sidebar_button_link" href="#">
  <vb:if condition="$vboptions['sidebarposition'] == 0">
  <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
  <vb:else />
  <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
  </vb:if>
  </a>

To make it appear on all pages? I'm still trying to find out.

spacemanspiff79 05-16-2010 04:37 AM

To show on all the pages,

https://vborg.vbsupport.ru/showthread.php?t=233871

btw your remove sidebar minimize..did work on the forum homepage, but its showing up on all the other pages if you are using the mod above.

anupam_luv 06-29-2010 10:28 PM

Dont change any other template...
Just add the following in "headinclude" template

Quote:

<style>
.sidebarleft #sidebar_button {display:none};
</style>
Works everywhere...

Taurus MFF 07-03-2010 01:14 PM

just remember something if you remove the collapse button...

anyone who had it closed before you removed the button will not be able to reopen the sidebar. the cookie that stores the user's open/closed preference is valid for about one year.

the user will have to delete the cookie or you will need to figure out a way to force the sidebar open regardless of the cookie value.

SouthEastSxS 07-08-2010 08:44 PM

Ok, here is the skinny on this, or I am missing something.

When I delete the code as above from ct2k7 then the collapse goes when the block is on general forum view but as soon as you browse another level then it re appears.

The other code offered by anupam_luv, I simply cannot make work at all, so maybe I am missing something.

Any help would be appreciated.

:confused:

Bram H 08-16-2010 09:03 PM

Quote:

Originally Posted by Taurus MFF (Post 2063838)
just remember something if you remove the collapse button...

anyone who had it closed before you removed the button will not be able to reopen the sidebar. the cookie that stores the user's open/closed preference is valid for about one year.

the user will have to delete the cookie or you will need to figure out a way to force the sidebar open regardless of the cookie value.

Any workaround for this? Unbelievable that we cannot decide if we want that button to be visible or not :)

g00gl3r 08-19-2010 02:23 PM

Quote:

Originally Posted by anupam_luv (Post 2061925)
Dont change any other template...
Just add the following in "headinclude" template



Works everywhere...

Using this I still get the button.

Any clues?

borbole 08-19-2010 02:48 PM

Removing that code posted above from the FORUMEHOME template would have hidden the minimize button for the sidebar.

Anyway, try to add the following code to your additional.css template and see if it would help.

Code:

#sidebar_button_link {
display:none;
}


Daisyboo 02-21-2011 07:49 AM

Quote:

Originally Posted by borbole (Post 2086368)
Removing that code posted above from the FORUMEHOME template would have hidden the minimize button for the sidebar.

Anyway, try to add the following code to your additional.css template and see if it would help.

Code:

#sidebar_button_link {
display:none;
}


That worked for me :)


All times are GMT. The time now is 05:48 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.01106 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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