1
brash
XHLD Template Help Needed
  • 2005/10/28 22:22

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


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?
IT Headquarters
Innovative IT Solutions

2
JMorris
Re: XHLD Template Help Needed
  • 2005/10/29 0:03

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Brash,

Which file did the following code come from?
<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}>


I looked through the templates, but I couldn't find anything that looked like the above code.

Thanks,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
McDonald
Re: XHLD Template Help Needed
  • 2005/10/29 0:34

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


It's from or is actually the file: ../templates/blocks/xhld0_block_rss.html

4
brash
Re: XHLD Template Help Needed
  • 2005/10/29 0:47

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Sorry James, it is a part of the block template that McDonald mentioned above. It's just a lot different from most other templates I've worked with, and I just can't seem to get it to play nice.
IT Headquarters
Innovative IT Solutions

Login

Who's Online

299 user(s) are online (182 user(s) are browsing Support Forums)


Members: 0


Guests: 299


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits