Thank you very much Jelle for this great hack!
Particularly beautifully: It is valid XHTML!
Quote:
Limitations:
The 'Last Post' column can be smaller than normal if the thread titles of the category forums are all small (you can only fix this with a template edit).
|
Find in:
- FORUMDISPLAY
- FORUMHOME
- forumhome_seperate_forumcats
PHP Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
And replace it with (for example):
PHP Code:
<tr align="center">
<td class="thead" width="5%"> </td>
<td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="35%">$vbphrase[last_post]</td>
<td class="thead" width="5%">$vbphrase[threads]</td>
<td class="thead" width="5%">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="0%">$vbphrase[moderator]</td>
</if>
</tr>
Notice how not all of the table cells (<td> tags) have width attributes. You need to give each cell a width attribute, and the total widths need to equal 100% of the horrizontal space. Percentages work well for this.
Kind Regards