View Full Version : Set "collapse" as default on collapsable modules
Zain Jaffer
04-16-2005, 09:31 PM
My forum uses the collapsable buttons, however I would like to turn SOME of these modules off. for example:
www.forum.juicyduff.com - I'd like the "users online" to be by default as "collapsed" rather than "expanded".
www.juicyduff.com - the quick registration form too
Can someone please point me in the right direction? :ermm:
Princeton
04-17-2005, 01:53 PM
you will need to modify the global.php, .js file, and templates
this will make things permanent ...
however, if you don't want to save/use cookies you can just add a conditional to the template
Zain Jaffer
04-17-2005, 03:10 PM
How would I do that?
BluPhoenix
04-18-2005, 04:01 AM
It's *nowhere* near that complicated ;)
You just need to find the:
<tbody id="foo" style="bar">
bit just before the table you wish to have start off closed.. then simply change the style part to:
style="display:none"
and that'll cause it to be closed by default.
Zachery
04-18-2005, 04:46 AM
It's *nowhere* near that complicated ;)
You just need to find the:
<tbody id="foo" style="bar">
bit just before the table you wish to have start off closed.. then simply change the style part to:
style="display:none"
and that'll cause it to be closed by default.
Yes and anyone who is not logged in, will see everything collasped, and anyone who has js disabled won't be able to expand them.,
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.