Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 12-22-2009, 08:55 PM
milsirhc's Avatar
milsirhc milsirhc is offline
 
Join Date: Jan 2007
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-25-2009, 02:26 AM
Shamil. Shamil. is offline
 
Join Date: Sep 2008
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 05-16-2010, 04:37 AM
spacemanspiff79 spacemanspiff79 is offline
 
Join Date: May 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-29-2010, 10:28 PM
anupam_luv anupam_luv is offline
 
Join Date: Feb 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
<style>
.sidebarleft #sidebar_button {display:none};
</style>
Works everywhere...
Reply With Quote
  #5  
Old 07-03-2010, 01:14 PM
Taurus MFF Taurus MFF is offline
 
Join Date: Feb 2010
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-08-2010, 08:44 PM
SouthEastSxS SouthEastSxS is offline
 
Join Date: Jul 2010
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Reply With Quote
  #7  
Old 08-16-2010, 09:03 PM
Bram H Bram H is offline
 
Join Date: Jul 2007
Location: The Netherlands
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus MFF View Post
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
Reply With Quote
  #8  
Old 08-19-2010, 02:23 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by anupam_luv View Post
Dont change any other template...
Just add the following in "headinclude" template



Works everywhere...
Using this I still get the button.

Any clues?
Reply With Quote
  #9  
Old 08-19-2010, 02:48 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
}
Reply With Quote
  #10  
Old 02-21-2011, 07:49 AM
Daisyboo Daisyboo is offline
 
Join Date: Jul 2008
Location: Somerset UK
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04226 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete