Jake Bunce
Sun 23rd Jan '05, 5:17pm
See the attached picture to see what this does.
Edit these 4 templates:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_*
Replace this code:
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
With this code:
<if condition="$show['subforums']">
<if condition="$GLOBALS[subrow] = false"></if>
<table width="100%" cellpadding="1" cellspacing="0" border="0">
<tr>
<td width="50%" align="left" colspan="2"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>:</div></td>
</tr>
<tr>
$forum[subforums]
</tr>
</table>
</if>
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_subforumseparator_post and forumhome_subforumseparator_nopost
Delete the contents of both templates.
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_subforumbit_post and forumhome_subforumbit_nopost
Add the red code to both templates:
<td width="50%" align="left" nowrap="nowrap">
<div class="smallfont">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
</div>
</td>
<if condition="$GLOBALS[subrow]">
</tr><tr>
</if>
<if condition="$GLOBALS[subrow] = !$GLOBALS[subrow]"></if>
The end result will look like the attached picture.
edit: added <div class="smallfont">...</div> to the forumhome_subforumbit_* templates so the subforum links are small like in the default style.
Edit these 4 templates:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_*
Replace this code:
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
With this code:
<if condition="$show['subforums']">
<if condition="$GLOBALS[subrow] = false"></if>
<table width="100%" cellpadding="1" cellspacing="0" border="0">
<tr>
<td width="50%" align="left" colspan="2"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>:</div></td>
</tr>
<tr>
$forum[subforums]
</tr>
</table>
</if>
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_subforumseparator_post and forumhome_subforumseparator_nopost
Delete the contents of both templates.
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_subforumbit_post and forumhome_subforumbit_nopost
Add the red code to both templates:
<td width="50%" align="left" nowrap="nowrap">
<div class="smallfont">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
</div>
</td>
<if condition="$GLOBALS[subrow]">
</tr><tr>
</if>
<if condition="$GLOBALS[subrow] = !$GLOBALS[subrow]"></if>
The end result will look like the attached picture.
edit: added <div class="smallfont">...</div> to the forumhome_subforumbit_* templates so the subforum links are small like in the default style.