PEAK XOOPS - XHLD Templates in englishin japanese

XHLD Templates

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
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
Previous post - Next post | Parent - No child | Posted on 2005/10/29 13:02
okuhiki  伍長   Posts: 47
<td class="bloklist"><script type="text/javascript" src="<{$block.mod_url}>/phpdate.js"></script><{$feed}></td>
英語の意味が判っていないのですが、これが望みでしょうか。
疑問:なぜscriptをいっぱい書き出すの?
Votes:11 Average:6.36

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!