You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 08-06-2013 19:11:34

steebchen
Contributors
From: Germany
Registered: 03-05-2013
Posts: 121

Slideshow: folder instead of files

Hey,
is it possible to select a folder instead of multiple images, or is it possible to use file masks (e.g. *.jpg) to use all pictures in /img folder? So that would be useful for me, because when i had added a new file, it would has automatically add them to the tile. Is that possible?

Offline

#2 08-06-2013 19:16:32

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Slideshow: folder instead of files

Probably it works using

"images"=>glob("yourfolder/*.jpg");

Didn't test.

Offline

#3 08-06-2013 20:24:44

steebchen
Contributors
From: Germany
Registered: 03-05-2013
Posts: 121

Re: Slideshow: folder instead of files

Yeah, that's what i tried too, but i think the script want to find the file named "*", so that doesn't work.

Offline

#4 08-06-2013 20:39:56

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Slideshow: folder instead of files

according the docs of PHP it should work. http://nl3.php.net/manual/en/function.glob.php#36995

Are you sure it searches for the file named *?

I tried it and it works fine on a slideshow tile.

Offline

#5 09-06-2013 01:24:54

steebchen
Contributors
From: Germany
Registered: 03-05-2013
Posts: 121

Re: Slideshow: folder instead of files

Hm, i tried it, but didn't work. Maybe because I'm running the site not from a webserver but from an offline virtual php area (the program name is "easyPHP"). I willl try it again when i'm running it on a webserver.
But thank you for the great support!

Offline

Board footer

Powered by FluxBB