Multiple Random Images

joedunn
joedunn's picture

Joined: 2003-09-07
Posts: 34
Posted: Tue, 2003-11-25 02:57

Can I create multiple random image blocks? I would like to do something exactly like on the main page for this site. I would like one random image from one album and a second random image from another album. It must be possible as your site has something like this. Do I jsut create multiple instances of the block or is there a hack?

Jeo Dunn

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2003-11-25 20:28

You could create a second instance of the block, or you could modify the code. For this website, I modified the block so that it calls the "doPhoto()" function twice which dumps out two random images instead of one. That's pretty easy to do...

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2003-11-26 17:28

Just got a tip to another part of your question... in this new version of gallery random block for postnuke thread.