1
Cicco
To join 2 blocks
  • 2005/7/17 15:14

  • Cicco

  • Just popping in

  • Posts: 48

  • Since: 2003/11/25


Hello, it's possible to join two blocks?

I would like to join the "news_block_bigstory" (News of the day) with "news_block_new" (Recent news), any could help me?

Thank a lot

2
rabideau
Re: To join 2 blocks
  • 2005/7/17 15:21

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


You could write a module that combines the two... or design your theme so that the borders between blocks apeear joined.

Either choice would work.
Pax vobiscum,
...mark

may the road rise to meet your feet!

http://treemagic.org

3
Cicco
Re: To join 2 blocks
  • 2005/7/17 18:46

  • Cicco

  • Just popping in

  • Posts: 48

  • Since: 2003/11/25


thanks for the reply rabideau.

I try to modify the blocks themes but after, only one block works... i mean only the old block work while the inserted block dosen't work.

I modify the news_block_new (the file is on modules/news/templates/blocks/) in this way:



News of the day

<p><{$block.message}>p>

<{if 
$block.story_id != ""}>
  <
p><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.story_id}>"><{$block.story_title}>a>p>
<{/if}>

Recent News

<ul>
  <{foreach 
item=news from=$block.stories}>
    <
li><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.title}>a> (<{$news.date}>)li>
  <{/foreach}>
ul>


Sorry my english

Login

Who's Online

268 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 268


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