Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
  #1  
Old 08-25-2008, 09:11 PM
lilfields10 lilfields10 is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Collapsible sidebar

I have the following website that has a collapsible side bar http://www.alienwareniche.com/forums/index.php

It works, but once you go to another page it doesn't remember that you collapsed it, so it almost becomes pointless. I would like to make it remember that you collapsed it and it would stay collapsed on all pages until you decided to open it back up. I've read on how the site statistics collapsible, etc works, but they collapse vertically, and I need a horizontal collapse. Is there any way I can do this? I'm currently using the following script that I found on Dynamic Drive to do this http://www.dynamicdrive.com/dynamici...edcollapse.htm

Any help would be appreciated, all I need is for the browser to remember that you have it collapsed and makes it stay collapsed until you decide to reopen it.
Reply With Quote
  #2  
Old 08-26-2008, 02:22 AM
MattIS MattIS is offline
 
Join Date: Dec 2007
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello there, I was looking over your site and I believe your problem is that you are not using the "hide=1/0" command for each Div that you have set up within the code which is why it appears Open again on new page as your default is set to always open when you do not have the "hide=1/0" tag present for that script
Reply With Quote
  #3  
Old 08-26-2008, 10:44 AM
lilfields10 lilfields10 is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That doesn't appear to work, it makes it stay collapsed when you collapse it on the home page and you come back to the home page...but when you go to a different page it doesn't have it collapsed for that page as well.
Reply With Quote
  #4  
Old 09-10-2008, 09:22 PM
lilfields10 lilfields10 is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone else? I'd really really like to make this work, I've had to withdraw the style because people were complaining about the sidebar not memorizing it's position.

I tried this "mod" and it does the same thing. https://vborg.vbsupport.ru/showthread.php?t=173996

Is there any way I can make it stay in the database somehow, like vbulletin's vertical collapsible?
Reply With Quote
  #5  
Old 09-11-2008, 12:31 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is this collapsible sidebar? I don't see it. I see a side bar on the forumdisplay page, but it isn't collapsible. If you want it to stay collapsed on all pages, then you need to make sure the id for the div or whatever is exactly the same on all the pages otherwise the cookie won't be set correctly.
Reply With Quote
  #6  
Old 09-11-2008, 01:27 AM
lilfields10 lilfields10 is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, the style isn't enabled right now as the default, go here and you can see it http://www.alienwareniche.com/forums...php?styleid=16
Reply With Quote
  #7  
Old 09-11-2008, 02:07 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are talking about the javascript collapsible box on the left that currently is non-functional? (The one with Register, Members List, etc in it.) In order to have the site remember whether it was collapsed or not, I think you need to set a cookie. Are you doing that? I'm not a javascript expert though. I thought you were talking about using the vb collapsible boxes.
Reply With Quote
  #8  
Old 09-11-2008, 02:08 AM
lilfields10 lilfields10 is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahaha! Fixed! Apparently I was using an old version of the javascript that Dynamic Drive had, it appears to be working now When I'm finished with this I'll post my code so others can use it. It was nonfunctional because I was messing around with it trying to figure out what the problem was.
Reply With Quote
  #9  
Old 01-10-2010, 09:28 PM
accludetuner accludetuner is offline
 
Join Date: Jun 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bump an old thread, but I was looking to do this exact same thing. Any chance of posting the code?
Reply With Quote
  #10  
Old 02-04-2010, 03:04 AM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dude... what's that facebook looking bar that has stuff? I'd love that with latest threads!!
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 07:06 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.04419 seconds
  • Memory Usage 2,239KB
  • 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
  • (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