2010-12-09, 02:26 AM
You have to modify the templates.
For example for the forum bit on the index page, the way I did it was to end the table after the thead and instead of the tbody, I used a div with the same id and have the tbody part in it.
Heres what my forumbit_depth1_cat looks like to give you an example:
EDIT: The above is from a custom theme I'm working on, I've added a couple of things to make it look nicer such as the tpost class which does not exist in the default css, so don't just copy paste, I'm posting the above for you to understand what needs to be done.
For example for the forum bit on the index page, the way I did it was to end the table after the thead and instead of the tbody, I used a div with the same id and have the tbody part in it.
Heres what my forumbit_depth1_cat looks like to give you an example:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</td>
</tr>
</thead>
</table>
<div style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tpost">
<tbody>
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
</div>
<br />
EDIT: The above is from a custom theme I'm working on, I've added a couple of things to make it look nicer such as the tpost class which does not exist in the default css, so don't just copy paste, I'm posting the above for you to understand what needs to be done.