PEAK XOOPS - XHLD Templates in englishin japanese

XHLD Templates

List posts in the topic

question XHLD Templates

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2005/10/28 22:23
brashquido  一等兵   Posts: 18
Hi All,

I'm trying to edit the default XHLD headlines block template from this;

<script type="text/javascript" src="<{$block.mod_url}>/phpdate.js"></script>
<{html_table loop=$block.feeds cols=$block.cols table_attr='border="0" width="95%" id="xhld"' tr_attr='id="xhld"' td_attr=$block.td_attr}>



To something with a more tabled formated view such as the default top users and new members blocks have. I'm a bit of a novice with Smarty and PHP, and have only ever dealt with fairly standard and easy to follow templates before. I have modified the XHLD template as follows;

<table cellspacing="1" cellpadding="5" class="outer">
  <{foreach item=feed from=$block.feeds}>
    <tr  class="<{cycle values="even,odd"}>" valign="middle">
      <td class="bloklist"><script type="text/javascript" src="<{$block.mod_url}>/phpdate.js"></script><{$block.feeds}></td>
    </tr>
  <{/foreach}>
</table>


However, the foreach statement isn't looping through the $block.feeds array as I would like, and all that is shown in the block is the word "Array" (minus the ""). Just wondering if anyone could point me in the right direction with this?
Votes:10 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!