The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to collapse subforums?
Hello All,
I have been trying to get the subforum to be collapsible however I could not get it to work. I would appreciate the help here is what I have used in the forumhome_forumbit_level1_post template Code:
<tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> <if condition="$childforumbits"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a> </if> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </td> </tr> <tr> <if condition="$childforumbits"> <td id="collapseobj_forumbit_$forumid" style="{$collapseobj_$forumid}; display:none"> $childforumbits </td> </if> </tr> </tbody> I would appreciate the help Regards, Omer |
#2
|
|||
|
|||
would appreciate the help?
|
#3
|
|||
|
|||
I got it
if anyone is interested then here it is Code:
<div class="tcat"> <if condition="$childforumbits"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forum[forumid]')"><img id="collapseimg_forumbit_$forum[forumid]" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forum[forumid]}.gif" alt="" border="0" /></a> </if> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> <if condition="$show['forumdescription']"><span class="smallfont"> » $forum[description]</span></if> <if condition="$show['subforums']"><span class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </div> <div class="border_left_top"<if condition="!$show['collapsable_forums']"> id="collapseobj_forumbit_$forum[forumid]" style="{$collapseobj_forum[forumid]}"</if>> <if condition="$childforumbits"> $childforumbits </if> </div> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|