Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Mar 2004, 11:54
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Real name: Liam Hawkins
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
Reply With Quote
  #2  
Old 13 Mar 2004, 22:08
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Real name: ITS A SECRET
Re: Collapsing

I *think* it involes hacking if you want to make a certain table collapse and expand.
Reply With Quote
  #3  
Old 13 Mar 2004, 22:10
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Real name: Liam Hawkins
Re: Collapsing

Just want the collapsin that comes as standard on all tables in vB3
Reply With Quote
  #4  
Old 27 Jul 2004, 03:32
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Real name: Julie
Re: Collapsing

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.
Reply With Quote
  #5  
Old 27 Jul 2004, 14:44
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Re: Collapsing

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):
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The "trick" is in the "uniquenamehere" value (occurs 5 times!) you will change for each collapsible box - this needs to be different across your entire site, as the functions will store a cookie with this unique value and refer to that to get the collapsed / expanded state of your block of code...

If this is not clear enuff, please let me know ...
__________________
Natcher00
... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
http://www.mobileforces.org/sig.jpg
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}
Reply With Quote
  #6  
Old 28 Jul 2004, 04:05
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Real name: Julie
Re: Collapsing

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
Reply With Quote
  #7  
Old 29 Jul 2004, 10:47
Fairclough Fairclough is offline
 
Join Date: Mar 2004
Re: Collapsing

It worked for me.

Thanks for that.
Reply With Quote
  #8  
Old 24 Aug 2004, 06:06
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Re: Collapsing

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?
Reply With Quote
  #9  
Old 25 Aug 2004, 03:47
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Re: Collapsing

the cookie should be updated with your extra blocks by the javascript that handles it ...
__________________
Natcher00
... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
http://www.mobileforces.org/sig.jpg
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}
Reply With Quote
  #10  
Old 26 Sep 2004, 13:52
evil kev evil kev is offline
 
Join Date: May 2004
Re: Collapsing

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?
Reply With Quote
  #11  
Old 13 Dec 2005, 17:44
HRM Web Service's Avatar
HRM Web Service HRM Web Service is offline
 
Join Date: Dec 2005
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.
Reply With Quote
  #12  
Old 13 Dec 2005, 18:11
noppid noppid is offline
 
Join Date: Mar 2003
Originally Posted by HRM Web Service
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.
Post your table code.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #13  
Old 13 Dec 2005, 19:04
HRM Web Service's Avatar
HRM Web Service HRM Web Service is offline
 
Join Date: Dec 2005
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks for the help

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

Last edited by HRM Web Service; 13 Dec 2005 at 19:09. Reason: Automerged Doublepost
Reply With Quote
  #14  
Old 13 Dec 2005, 20:58
noppid noppid is offline
 
Join Date: Mar 2003
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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #15  
Old 14 Dec 2005, 11:41
HRM Web Service's Avatar
HRM Web Service HRM Web Service is offline
 
Join Date: Dec 2005
I don't see any problem with the code.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any other suggestions? The problem is not the code (well it could be the collapsing code - but it appreas fine). Just wondering why cookie or caching isn't taking place.

Last edited by HRM Web Service; 14 Dec 2005 at 12:27. Reason: Reviewed Code Above (Would be a double post)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 00:03.

Layout Options | Width: Wide Color: