What can we do to make it easier to design with Wild Apricot?

Populate slideshow with 5 random images from directory

I've been searching for a clean way to get 5 random images from an images folder and use them in a slideshow.

Normally I would just use PHP to access the directory and add the file names to an array and then use JavaScript to randomly add them to the slider, but this doesn't seem to be an option in Wild Apricot.

Is there a reliable work around?

0 votes
Sign in
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

apaul34208 shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: Facebook Google
Signed in as (Sign out)
  • Kerrie-Anne commented  ·   ·  Flag as inappropriate

    There are free tools that will rename all the files for you in a directory to a specific formula as well - if you're set up to use webdav, it would then be really simple to re-upload the renamed files...

  • apaul34208 commented  ·   ·  Flag as inappropriate

    Thanks for the response, but that's not quite what I'm looking for.

    To use the plugin I would have to change all of the file names to be sequential, like:

    slide_01.jpg, slide_02.jpg and slide_03.jpg and so on...

    Also it looks like it would need some significant modification to get it to load a given number of random images from a directory, rather than loading all images in the directory.

    To get the what I'm after, I'm thinking, I'll have to use a server side approach, but I keep getting 504 access denied when trying Ajax requests, and Wild Apricot's editor just comments out PHP...

Feedback and Knowledge Base