PEAK XOOPS - Displaying myAlbum-P photos in 2 columns on viewcat.php in englishin japanese

Displaying myAlbum-P photos in 2 columns on viewcat.php

List posts in the topic

normal Displaying myAlbum-P photos in 2 columns on viewcat.php

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/12 7:38
FutureSpy  Corporal From: 世界のどっかで  Posts: 70
Hi.

I was testing myAlbum-P. I should confess that I didn't like it from a first sight, but after testing it I decided to use it over xcGal.

Now, I'm editting the templates. I wanna have viewcat.php to show the photos in 2 columns, but I don't seem to be doing it correctly.

Here's the code of viewcat_list.html I'm trying to modify:
        <table width='100%' cellspacing='0' cellpadding='10' border='0'>
<tr>
          <{foreach from=$photos item=photo}>
            <{include file="db:myalbum_photo_in_list.html"}>
<{if $count is div by 2}>
</tr><tr>
<{/if}>
          <{/foreach}>
</tr>
        </table>

Instead of showing the tags inside "$count is div by 2" only in one of the photos of a column, it's displaying for every photo. I wonder if I have to touch the code too, or am I using the wrong variable?


Thanks in advance
-Yuji
Votes:3 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!