1
happycase
My Ads module categories display
  • 2004/11/30 19:48

  • happycase

  • Just popping in

  • Posts: 3

  • Since: 2004/11/23


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 == || $cat.== $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...

Login

Who's Online

238 user(s) are online (170 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits