Announcement

Collapse
No announcement yet.

Adding collapse button to the forums

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    sunilvarma
    New Member

  • sunilvarma
    replied
    yeah it worked. you people rock.

    Thanks a lot.

    Leave a comment:

  • Jake Bunce
    Senior Member

  • Jake Bunce
    replied
    That code is in this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level1_nopost

    The relevant pieces are highlighted in red. You will need to integrate them with your custom template:

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

    Leave a comment:

  • sunilvarma
    New Member

  • sunilvarma
    started a topic Adding collapse button to the forums

    Adding collapse button to the forums

    hi all, heres the forum i need to modify - www.fjcruiser.cc

    its a custom design and the designer didn't add the collapsable feature to the categories as in the default style.

    so all i want is a quick piece of code and where i need to add it, so that i get the collapsable categories.

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