![]() |
Collapsing
I've searched this site, vb.com and vb.org and drew a blank.
Can someone give me proper instructions about how to make a table that can collapse and expand? Cheers :) |
I *think* it involes hacking if you want to make a certain table collapse and expand.
|
Just want the collapsin that comes as standard on all tables in vB3 :p
|
Anyone have a clue in this ^^; ? I'm trying to make something collapse but the templates aren't doing it. I've installed hacks that done this without code changes. Very odd.
|
OK...
You basically need to have your content in a wrapper that will be the visible part when the content is collapsed, and add an id="uniquename" to your content... Template (this will give you an idea): HTML Code:
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> If this is not clear enuff, please let me know ... |
Hmm I tried that but it still wouldn't collapse right, like if you click on the button, it will disappear but not collapse :/ Very very odd. Let me check it out again I suppose
|
It worked for me.
Thanks for that. :D |
This was a great help.
But I don't understand this in tbody style="$collapseobj_uniquenamehere" Where is that variable set? Also, how do you get the cookie set to remember if the table is collapsed or not? |
the cookie should be updated with your extra blocks by the javascript that handles it ...
|
i too have been trying to make the collapsible menu's and have managed to make them work but not save in the cookies. i don't know what i'm doing wrong but it's really annoying.
does anyone know what the critera is to make the information be saved correctly in the cookies are variables defined somewhere? its really bugging me because a chunk of the redesign of my site relies on having things saved hideable hmm? |
I would also like to know how to get the cookie file to remember my custom collapses etc.
I can get any thing to collapse just fine.. but when I refresh it goes back to its default state. Can someone help please. |
Quote:
|
That's the block below. I know that only part of it is relevant but I figured it's better all than not.
The functional portion can be seen here ("Icon Meanings" at the bottom of the screen): http://eservices.halifax.ca/forum2/index.php HTML Code:
<div align="center"> Incase you're wondering.... It works fine other than the fact that it doesn't recall whether or not it was collapsed. i.e. the cookies are not being set correctly. Being able to customize collapsing menus is very important to the layout I wish to achieve. G |
Your table is out of balance. Two opens, three closes and the tbody tag not nested properly.
I did this quickly, but it may work. I did not check the collapse code, just the table code. HTML Code:
<div align="center"> |
Hey,
Thanks for reviewing the code Noppid. I have checked the code I posted using DW8 (Dreamweaver 8). I see no problem with the tags. They are all XHTML compliant and there are equal number of open and close tags for everything in the right locations. The code you posted however has errors in as you described. Specifically the section below: HTML Code:
<table width="100%" border="0" cellpadding="1" cellspacing="0"> |
There is an official tutorial on vb.com
http://www.vbulletin.com/forum/showthread.php?t=127499 Should apply to almost every version .. |
Quote:
Yep, I missed one. Sorry. :o To get your cookies to work, change the second <tbody> to.... HTML Code:
<tbody id="collapseobj_iconLegend" style="$vbcollapse[collapseobj_iconLegend]"> |
Wow. That easy eh!! lol
I guess sometimes you just miss something so simple you think nothing of it! Thanks a lot Noppid! And thanks utw-Mephisto for the link! |
All times are GMT. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|