The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Forum Navigation collapsable
Hi,
I made a new module in vbadvanced for the forum navigation: www.schuelercommunity.com/forum.php Now, I'd like to make main forums such as "Lehrerzimmer" and "Lounge" collapsable. They should be collapsed by default. I'm using a template module with the following template-content: Code:
<tr class="alt2"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=6">» <b>Lehrerzimmer</b></td> </a></tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=60">Fragen zu SC</a></td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=10">News</td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=40">Lob, Kritik & Vorschl?ge</a></td> </tr> <tr class="alt2"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=7">» <b>Lounge</b></a></td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=20">Schule allgemein</a></td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=11">Plauderecke</a></td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=27">Stell dich vor</a></td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=29">Game Lounge</a></td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=12">Marktplatz</a></td> </tr> <tr class="alt1"> <td class="smallfont"><a href="http://www.schuelercommunity.com/forum/forumdisplay.php?f=52">Arbeitswelt</a></td> </tr> thank you |
#2
|
||||
|
||||
Here's a template for making collapsible boxes. Extract what you need from it.
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="180"> <thead> <tr> <td class="thead"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('MYBOX')"><img id="collapseimg_MYBOX" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_MYBOX].gif" alt="" border="0" /></a> TITLE HERE </td> </tr> </thead> <tbody id="collapseobj_MYBOX" style="$vbcollapse[collapseobj_MYBOX]"> <tr> <td class="alt1" nowrap="nowrap">CONTENTS HERE</td> </tr> </tbody> </table> see also https://vborg.vbsupport.ru/showthread.php?t=119931 |
#3
|
|||
|
|||
thank you very much!
I could use this code: www.schuelercommunity.com/forum.php Now, is it possible to make the by default collapsed? And the first collaps-button of the module doesn't collaps anymore. This is not serious but how could I solve this? thank you --------------- Added [DATE]1194350802[/DATE] at [TIME]1194350802[/TIME] --------------- any ideas? |
#4
|
||||
|
||||
This should do it.
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="180"> <thead> <tr> <td class="thead"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('MYBOX')"><img id="collapseimg_MYBOX" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_MYBOX].gif" alt="" border="0" /></a> TITLE HERE </td> </tr> </thead> <tbody id="collapseobj_MYBOX" style="<if condition="isset($vbcollapse[collapseobj_MYBOX])">$vbcollapse[collapseobj_MYBOX]<else />display: none;</if>"> <tr> <td class="alt1" nowrap="nowrap">CONTENTS HERE</td> </tr> </tbody> </table> |
#5
|
|||
|
|||
Thank you very much! That worked!
But now, it doesnt save the setting of the user. they are collapsed on every page load. Before that, I saved if one was collapsed or not and it saved this. is this also possible? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|