Announcement

Collapse
No announcement yet.

Expand only specific parent categories?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jake Bunce
    replied
    In the forumhome_forumbit_level1_nopost template, replace the red code:

    Code:
    <tbody>
    	<tr>
    		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    			<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>
    			<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="[color=red]{$collapseobj_forumid}[/color]">
    $childforumbits
    </tbody>
    </if>
    With the blue code:

    Code:
    <tbody>
    	<tr>
    		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    			<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>
    			<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="[color=blue]display: none;[/color]">
    $childforumbits
    </tbody>
    </if>
    Now categories will always be collapses by default, but it will not remember changes. That is the best I was able to do.

    Leave a comment:


  • MJM
    started a topic Expand only specific parent categories?

    Expand only specific parent categories?

    Is it possible to only show parent categories - no subforums, and viewer expands only selected categories on index page?

    It can be down downwards, ie, show parent categories + sub forums and viewer can selectively collapse specific sections of the index page, but can it be done the other way around - only show parent categories and viewer expands only selected categories to display on index page?

    Thanks,
    Mark
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X