1
My Ads module categories display
Hello everybody,
I'm trying to modify "My-ads" XOOPS module in order to fit it on my classified site.
What I'm trying to do, is quite simple, I need to display (have a look at my site!!
Happy Case) for each categories page
here,
the categories links, 3 for line and in case the total number of categories would be not multiple of 3, remaining ones in the last line.
Eg.
Way it is now:
cat cat cat
cat
cat cat cat
cat
cat cat cat
Way Id' like it to be:
cat cat cat
cat cat cat
cat cat cat
cat cat.
I found the lines the regulate this organization it is the following:
<{foreach item=cat from=$categories}>
<{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.count}>)td>tr>
<tr><td class="odd"><{$cat.subcat}>td>tr>
table>
td>
<{if $mod == 2 || $cat.i == $cat_count}>tr><{/if}>
<{/foreach}>
I tried to mess it out (obviously by pushing buttons as I'm not a php genious), but nothing I actually expected happened...
Can You Help me please?
Thank you...