![]() |
Javascript ... Wayne Luke Can't Help
<a href="http://www.vbulletin.com/forum/showthread.php?t=112231" target="_blank">Posted on vB.com</a>, but unfortunately no help.
My Question: How can I set subforums as "collapsed" by default on the index page? I still want the collapse/expand to be operable; however, I would like for users to have to click to expand. Wayne Luke says I need to tweak the javascript. Can anyone tell me how? Thanks! |
The following two template changes will *always* load the main page with the subforums collapsed. The user can un-collapse them, but as soon as the main page is reloaded, they will be collapsed again.
In the template named forumhome_forumbit_level1_nopost, make these two changes: Change: src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" To: src="$stylevar[imgdir_button]/collapse_tcat_collapsed.gif" Change: <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"> To: <tbody id="collapseobj_forumbit_$forumid" style="display:none;"> |
Worked like a charm. Thank you so much!
BTW, someone commented at vB.com: "Be aware that users that don't have javascript activated will NOT be able to see the collapsed elements, as they will not be able to open them. |
All times are GMT. The time now is 11:22 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|