The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
|||
|
|||
![]()
Hi,
I also added some custom content to the sidebar and would like it to collapse just like the standard content. So far I added Code:
<vb:if condition="$close_sidebar"><p class="sidebar_hidden">Test collapsed<vb:else /><p class="custom_sidebar_stuff">Test not collapsed</p></vb:if> To make the custom content collapse as soon as you click on the collapse button requires some modifications to: forum/clientscript/vbulletin-sidebar.js this file contains a toggle function: Code:
vBSidebar.prototype.toggle_collapse=function(A){YAHOO.util.Event.stopEvent(A);if(YAHOO.util.Dom.getStyle(this.sidebar,"display")=="none") Would be great if someone could give me a hint on how to add additional IDs to the toggle_collapse function. Thank you - all the best, Sacha |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|