Register Members List Search Today's Posts Mark Forums Read

Article Options
Collapse Tables by Default
Join Date: Nov 2001
Posts: 76

by TouchingVirus TouchingVirus is offline 19 Jul 2004

Well, i just thought i would tell you all how to make things be collapsed by default because i didnt see anything relating to it on the forums.

In vB3, theres the handy feature to collapse items, but once your cookies are cleared, they are expanded by default again..well here is how to default it to collapsed

in your templates, find the tbody you require.. for example..

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

Change the style variable to display:none, so the example above would now read:

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

And thats it, your table is now collapsed by default. Obviously you can expand it as usual. Hope you enjoyed this little tip and apologies if its already posted!
Views: 4266
Reply With Quote
Old 05 Jan 2005, 04:22
mzenner mzenner is offline
Join Date: Mar 2004
Thanks was playing with this today and it is cool
found the stuff also myself but forgot the
style="$vbcollapse[collapseobj_forumhome_XXXXXXXX] -> that is to make sure the cookie remembers it

thanks to this thread i found out what i needed to do
Reply With Quote
Old 05 Jan 2005, 20:43
Michael Morris's Avatar
Michael Morris Michael Morris is offline
Join Date: Nov 2003
Real name: Michael Morris
Be careful with this - users with javascript disabled won't be able to expand the tables.
Reply With Quote
Old 11 Jul 2005, 15:29
Milchi Milchi is offline
Join Date: Jun 2005
Is it possible to code it so that not all people have always to open all Categories? Now it is like u have to reopen all categories u want each time u visit "Forumhome"
Reply With Quote
Old 11 Jul 2005, 15:48
Paul M's Avatar
Paul M Paul M is offline
Join Date: Sep 2004
Real name: Paul M
Won't this also mean it's collapsed everytime you revisit, even if you left it open on your last visit ?
Former Staff Member

Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote

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

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 03:48.

Layout Options | Width: Wide Color: