The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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 ![]() |
#2
|
||||
|
||||
![]()
I *think* it involes hacking if you want to make a certain table collapse and expand.
|
#3
|
||||
|
||||
![]()
Just want the collapsin that comes as standard on all tables in vB3
![]() |
#4
|
||||
|
||||
![]()
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.
|
#5
|
||||
|
||||
![]()
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%"> <tr> <td class="tcat" style="$stylevar[left]"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('uniquenamehere')"><img id="collapseimg_uniquenamehere" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_uniquenamehere.gif" alt="" border="0" /></a> <span class="smallfont">Title Here</strong></span> </td> </tr> </thead> <tbody id="collapseobj_uniquenamehere" style="$collapseobj_uniquenamehere"> <tr> <td class="$getbgrow"> INSERT ALL YOUR CONTENT HERE </td> </tr> </tbody> </table> <br /> If this is not clear enuff, please let me know ... |
#6
|
||||
|
||||
![]()
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
|
#7
|
|||
|
|||
![]()
It worked for me.
Thanks for that. ![]() |
#8
|
||||
|
||||
![]()
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? |
#9
|
||||
|
||||
![]()
the cookie should be updated with your extra blocks by the javascript that handles it ...
|
#10
|
|||
|
|||
![]()
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? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|