Start ::
Extensions and Distributions Support ::
Modules ::
Random Image Generator...H-E-L-P!!!
Moderated by: Support Team
-
- rank:
-
Freshman
- registered:
- October 2003
- Status:
- offline
- last visit:
- 18.10.03
- Posts:
- 5
Hey everyone,
We have an image module on our site: http://www.stonybrookmsa.com
But I need one that can randlomly choose one from a specific folder...because we have several ads we want to display. Anyone know how to do this?
- Farooq -
- rank:
-
Freshman
- registered:
- June 2003
- Status:
- offline
- last visit:
- 26.10.07
- Posts:
- 27
-
- rank:
-
Helper
- registered:
- February 2003
- Status:
- offline
- last visit:
- 11.06.08
- Posts:
- 226
You might want to take a look at the MultiImage module at:
http://noc.postnuke.com/projects/multiimage/
Allows you to have a random image block. -
- rank:
-
Helper
- registered:
- October 2003
- Status:
- offline
- last visit:
- 08.11.06
- Posts:
- 316
You could streamline that code a bit as well:
This allows the mysql server to do the work of finding a random row. Not sure if it is really more or less effecient, just a different way of doing it. -
- rank:
-
Freshman
- registered:
- February 2004
- Status:
- offline
- last visit:
- 12.01.05
- Posts:
- 9
Hi,
Is it possible to create a "Recent Picture" block for Smartor's album with something like what you have here for "random block"? Can anyone please post code for it here? Your help will be greatly appreciated.
TIA
Start ::
Extensions and Distributions Support ::
Modules ::
Random Image Generator...H-E-L-P!!!
