vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Set "collapse" as default on collapsable modules (https://vborg.vbsupport.ru/showthread.php?t=80027)

Zain Jaffer 04-16-2005 09:31 PM

Set "collapse" as default on collapsable modules
 
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:
Code:

<tbody id="foo" style="bar">
bit just before the table you wish to have start off closed.. then simply change the style part to:
Code:

style="display:none"
and that'll cause it to be closed by default.

Zachery 04-18-2005 04:46 AM

Quote:

Originally Posted by BluPhoenix
It's *nowhere* near that complicated ;)

You just need to find the:
Code:

<tbody id="foo" style="bar">
bit just before the table you wish to have start off closed.. then simply change the style part to:
Code:

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.,


All times are GMT. The time now is 07:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01030 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete