Forum OpenACS Q&A: Function to display random pictures from photodb

This tcl function, derived from banner ideas, pulls a random thumbnail from your photodb database and formats it for display.

http://www.felix.org/share/rf-randompix.txt

To implement:

  1. Place the contents of the link above into a file in your myserver/tcl directory, renamed with a .tcl extension.
  2. Restart aolserver to source the function.
  3. Call the function as [random_pix].
You can check out its functionality at my site, www.felix.org -- go to the top level, then hit your browser's refresh button -- a new picture will come up on the home page each time.

Enjoy!