View Full Version : Removing VB4 Sidebar's minimize button
milsirhc
12-22-2009, 08:55 PM
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:
<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, 03: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, 09:28 PM
Dont change any other template...
Just add the following in "headinclude" template
<style>
.sidebarleft #sidebar_button {display:none};
</style>
Works everywhere...
Taurus MFF
07-03-2010, 12: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, 07: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, 08:03 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.
Any workaround for this? Unbelievable that we cannot decide if we want that button to be visible or not :)
g00gl3r
08-19-2010, 01:23 PM
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, 01: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.
#sidebar_button_link {
display:none;
}
Daisyboo
02-21-2011, 07:49 AM
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.
#sidebar_button_link {
display:none;
}
That worked for me :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.