PEAK XOOPS - another small bug in englishin japanese

another small bug

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/21 17:35
xavhmn  ¾åÅùʼ From: Athis mons, france  Posts: 36
the templates of the style below a problem, it is tested number of columns, does not function

for exemple: myalbum_block_rphoto.php
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
  <tr>
    <{foreach item=photo key=count from=$block.photo}>
      <td align='center' style='margin:0px;padding:5px 0px;'>
        <a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a>
      </td>
      <{if $count is div by $block.cols }>
        </tr><tr>
      <{/if}>
    <{/foreach}>
  </tr>
</table>

a code of table of too is generated

</td></tr><tr></tr></table>

sorry for my english
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/22 5:22
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Is it wrong HTML?
is <tr></tr> without <td></td> invalid HTML of W3C?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/22 13:23
xavhmn  ¾åÅùʼ From: Athis mons, france  Posts: 36
yes, invalid html of w3c.
Votes:7 Average:0.00

question Re: another small bug

msg# 1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/24 5:51
GIJOE  ÀèǤ·³Áâ   Posts: 4110
a little better code ...
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
  <tr>
    <{foreach item=photo key=count from=$block.photo name=photoloop}>
      <td align='center' style='margin:0px;padding:5px 0px;'>
        <a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a>
      </td>
      <{if $count is div by $block.cols && ! $smarty.foreach.photoloop.last
}>
        </tr>
        <tr>
      <{/if}>
    <{/foreach}>
  </tr>
</table>

Thank you for reporting.
Votes:0 Average:0.00

question Re: another small bug

msg# 1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2006/7/26 18:53
xavhmn  ¾åÅùʼ From: Athis mons, france  Posts: 36
that goes perfectly I corrected all the templates in the same way and it passed perfectly to the w3c validation. Juste a problem, the notifications of xoops, they, are not w3c compatible.
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!