The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
By default, a collapsible element shows up in the uncollapsed / open state first, and then the collapse button needs to be clicked before it is collapsed. However I need this to be reversed such that the block is already collapsed when the page is first viewed, but can be opened by clicking on the collapse control / button.
How can I do this? |
#2
|
|||
|
|||
![]()
hook : global_start
Code:
$vbcollapse['collapseimg_[OBJECT_NAME]'] = '_collapsed'; $vbcollapse['collapseobj_[OBJECT NAME]'] = 'display:none;'; |
#3
|
|||
|
|||
![]()
thanks, I'll give that a try
![]() |
#4
|
|||
|
|||
![]()
Please be aware that users that have JS turned off, will never be able to expand. (which is also the reason default vB will never collapse by default)
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|