Shuffle: order=random

Note: The shuffle=1 parameter that existed in the old Thumblist is deprecated. Please use order=random with ThumbList².

This page demonstrates the possibility of a random thumbnail displayed, or a random selection of thumbnails, by the parameter order=random.

One random thumbnail

This is only possible with thumblist count=1:

(:thumblist count=1 px=64 order=random:)
Windbuchencom.jpg: 800x601, 105k (2009-02-13 12:30)

Whole list randomized

(:thumblist count=4 px=64 order=random:)
Hubble2005-01-barred-spiral-galaxy-NGC1300.jpg: 800x456, 56k (2009-02-13 12:30) Tsunami_by_hokusai_19th_century.jpg: 800x536, 131k (2009-02-13 12:30) Wrightflyer.jpg: 800x477, 42k (2009-02-13 12:30) Robby_Naish_a-1.jpg: 800x534, 107k (2009-02-13 12:30)

Reload the page to see how it changes. If you use supercache=1 (don't), the files will obviously be shuffled only once and stored/displayed in that order.

Notes

  • "random order"==no "image trails" in the template (<<|>>). Because the files are shuffled on every page load and there is no way to cache the trail list (it would change on the next page view).
  • On this page where the order is random, I am using $EnableIMSCaching = 0; to prevent the page caching by the browsers.

See also