Thanks Ian, the 'if' statements did the trick. For a sample, look at one of my forums:
http://virtuafighter.com/forums/ubbthreads.php/ubb/postlist/Board/15/page/1The template code structure I used was as follows:
{section name="fora" loop=$subforum}
{* Subforum row start only at the beginning of col 1 *}
{if $smarty.section.fora.iteration % 2 == 1}
<tr>
{assign var=row_open value=1}
{/if}
<td>{$subforum[fora]}</td>
{* Subforum row end only at the end of col 2 *}
{if $smarty.section.fora.iteration % 2 == 0}
</tr>
{assign var=row_open value=0}
{/if}
{/section}
{* If Subforum ends in col 1, then blank the last cell in col 2 *}
{if $row_open}
<td colspan=5 class="forumtitle"> </td></tr>
{/if}
To prevent the empty cell in the event that the subforum table ends in the first column, I just maintained a variable called $row_open, which is set to true or false with each
and
. Once the section loop exits, I just check to see the row is still open, and if so, I close it with a single cell spanning 5 columns.
Cheers.