Quote:
Originally Posted by The Cat!
Is there a way to disable the collapse? When I installed this I had a few catagories collapsed and now no matter what I do I can't get them to un-collapse. I would like to just disable them. Anyone?
|
This only happens when you have the same forum in more than one tab (which by using the default vB functions, the collapseIDs are always assigned by using the forumID).. This is what is causing the conflict and is being re-written in version 2.0 to prevent that.
Did you try and uncollapse them from the first tab that they are displayed in? I just tried that and it worked.
If you want to strip out the Collapse Functionality, just remove the code (in
RED ) in the Below Template..
Template Name: forumhome_forumbit_level1_nopost
Code:
<!-- TFH -->
<if condition="(THIS_SCRIPT == 'tabforumhome' AND in_array($forum['forumid'], $GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'">
<!-- /TFH -->
<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>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
<!-- TFH -->
</if>
<!-- /TFH -->