vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Collapsible sidebar (https://vborg.vbsupport.ru/showthread.php?t=189108)

lilfields10 08-25-2008 09:11 PM

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.

MattIS 08-26-2008 02:22 AM

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

lilfields10 08-26-2008 10:44 AM

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.

lilfields10 09-10-2008 09:22 PM

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?

Lynne 09-11-2008 12:31 AM

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.

lilfields10 09-11-2008 01:27 AM

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

Lynne 09-11-2008 02:07 AM

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.

lilfields10 09-11-2008 02:08 AM

Ahaha! Fixed! Apparently I was using an old version of the javascript that Dynamic Drive had, it appears to be working now :D 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.

accludetuner 01-10-2010 09:28 PM

Sorry to bump an old thread, but I was looking to do this exact same thing. Any chance of posting the code?

grey_goose 02-04-2010 03:04 AM

Dude... what's that facebook looking bar that has stuff? I'd love that with latest threads!!


All times are GMT. The time now is 06:52 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.01034 seconds
  • Memory Usage 1,726KB
  • 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
  • (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