1
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?