1
Kellymac
Random News Block - How to do random photos?
  • 2006/2/21 17:31

  • Kellymac

  • Just popping in

  • Posts: 41

  • Since: 2006/2/1 1


I'm trying to modify the random news block and want to include the news items image randomly.
I tried this:

<table>
<tr>
<td>
<ul>
<{foreach item=news from=$block.stories}>
<img src=$story.imglink>
<a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>" <{$news.infotips}>><{$news.title}></a> <br /><{$news.teaser}></li>
<{/foreach}>
</ul>
</td>
</tr>
</table>


Probably really simple. What can I say. I'm new to all of this. Help would be appreciated.

2
marcionline
Re: Random News Block - How to do random photos?

Already exist a module with this function. The name is Aleatoire 1.2 (http://xoops.net.br/lingo/modules/rmdp/down.php?id=67).

I'm not certain if works with XOOPS 2.2+...

3
Kellymac
Re: Random News Block - How to do random photos?
  • 2006/2/21 19:07

  • Kellymac

  • Just popping in

  • Posts: 41

  • Since: 2006/2/1 1


That's not what I am looking for though.
I'm looking to display the image of the random news item.
Not just any image.

Login

Who's Online

246 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 246


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