PDA

View Full Version : Removing VB4 Sidebar's minimize button


milsirhc
22 Dec 2009, 22:55
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.
25 Dec 2009, 04:26
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
16 May 2010, 06:37
To show on all the pages,

http://www.vbulletin.org/forum/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
30 Jun 2010, 00:28
Dont change any other template...
Just add the following in "headinclude" template

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


Works everywhere...

Taurus MFF
03 Jul 2010, 15:14
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
08 Jul 2010, 22:44
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
16 Aug 2010, 23:03
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
19 Aug 2010, 16:23
Dont change any other template...
Just add the following in "headinclude" template



Works everywhere...

Using this I still get the button.

Any clues?

borbole
19 Aug 2010, 16:48
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
21 Feb 2011, 09:49
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 :)