1
Calipsy
table on blocks
  • 2005/3/10 8:57

  • Calipsy

  • Just popping in

  • Posts: 87

  • Since: 2003/4/30


I am trying to put a table around this block weblinks_block_new.html, but I just cannot do it. Does not matter what I do, the table falls on the end of block.

Could you please give me a hand here? I am a XOOPS end-user.

<table cellspacing="1" class="outer">
<ul>

<{foreach item=link from=$block.links}>

<tr class="<{cycle values="even,odd"}>" valign="middle">

<li>

<{if $link.show_banner == 1}>
<a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>">

<{if $link.width > 0 }>
<img src="<{$link.banner}>" width="<{$link.width}>" border="0" alt="banner" />
<{else}>
<img src="<{$link.banner}>" border="0" alt="banner" />
<{/if}>

</a>
<{/if}>

<a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>"><{$link.title}></a> (<{$link.date}>)

<{if $link.show_new == 1}>
<img src="<{$block.module_url}>/images/new.gif" border="0" alt="new" />
<{/if}>

<{if $link.show_update == 1}>
<img src="<{$block.module_url}>/images/update.gif" border="0" alt="update" />
<{/if}>

<{if $link.show_pop == 1}>
<img src="<{$block.module_url}>/images/pop.gif" border="0" alt="popular" />
<{/if}>

</li>
</tr>
<{/foreach}>

</ul>
</table>

2
tjnemez
Re: table on blocks
  • 2005/3/10 9:29

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


This will wrap it, but not sure if the odd even will cycle.

<table cellspacing="1" class="outer">
<tr class="<{cycle values="even,odd"}>" valign="middle"><td><ul>

<{foreach item=link from=$block.links}>


<li>

<{if $link.show_banner == 1}>
<a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>">

<{if $link.width > 0 }>
<img src="<{$link.banner}>" width="<{$link.width}>" border="0" alt="banner" />
<{else}>
<img src="<{$link.banner}>" border="0" alt="banner" />
<{/if}>

</a>
<{/if}>

<a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>"><{$link.title}></a> (<{$link.date}>)

<{if $link.show_new == 1}>
<img src="<{$block.module_url}>/images/new.gif" border="0" alt="new" />
<{/if}>

<{if $link.show_update == 1}>
<img src="<{$block.module_url}>/images/update.gif" border="0" alt="update" />
<{/if}>

<{if $link.show_pop == 1}>
<img src="<{$block.module_url}>/images/pop.gif" border="0" alt="popular" />
<{/if}>

</li>
</tr>
<{/foreach}>

</ul></td></tr>

</table>

3
Calipsy
Re: table on blocks
  • 2005/3/10 9:41

  • Calipsy

  • Just popping in

  • Posts: 87

  • Since: 2003/4/30


Hi tjnemez

Thanks for answer me.

I copied and pasted your fix and it is wrapping only the first new link and putting it in the end of the block. We are almost there.

What Could I do next?

4
tjnemez
Re: table on blocks
  • 2005/3/10 14:32

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


i was not paying attention to what i posted. try this:

<{foreach item=link from=$block.links}>

<table cellspacing="1" class="outer">
<tr class="<{cycle values="even,odd"}>" valign="middle"><td><ul>

<li>

<{if $link.show_banner == 1}>
<a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>">

<{if $link.width > 0 }>
<img src="<{$link.banner}>" width="<{$link.width}>" border="0" alt="banner" />
<{else}>
<img src="<{$link.banner}>" border="0" alt="banner" />
<{/if}>

</a>
<{/if}>

<a href="<{$block.module_url}>/singlelink.php?lid=<{$link.id}>"><{$link.title}></a> (<{$link.date}>)

<{if $link.show_new == 1}>
<img src="<{$block.module_url}>/images/new.gif" border="0" alt="new" />
<{/if}>

<{if $link.show_update == 1}>
<img src="<{$block.module_url}>/images/update.gif" border="0" alt="update" />
<{/if}>

<{if $link.show_pop == 1}>
<img src="<{$block.module_url}>/images/pop.gif" border="0" alt="popular" />
<{/if}>

</li>
</tr>

</ul></td></tr>

</table>

<{/foreach}>

Login

Who's Online

169 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

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

Latest GitHub Commits