1
Following code is from MyAds file myads_category.html.
I can't get it to show colums and rows right.
I think it has something to do with <{math equation="i % 3" and style="width:33%. I have tried all possible combinations I could think of.
I don't care anymore if i have 2 or 3 columns if I just get it right.
The way it is right now it shows
2 colmns then one single
2 colmns then one single
2 colmns then one single
etc.
You can see it here:
http://www.vmclinks.com/x/modules/myAds/index.php?pa=view&cid=2 <table border="0" style="width:100%;">
<{foreach item=cat from=$subcategories}>
<{math equation="i % 3" i=$cat.i assign="mod"}>
<{if $mod == 0}><tr><{/if}>
<td valign="top" align="center" style="width:33%;">
<table class="outer" cellspacing="0" style="width:100%;">
<tr><td class="head"><{$cat.image}> <{$cat.link}> (<{$cat.adcount}>) <{$cat.new}>td>tr>
table>
td>
<{if $mod == 2 || $cat.i == $subcat_count}>tr><{/if}>
<{/foreach}>
table>