Search…

X3 Photo Gallery Support Forums

Search…
 
demodisc
Topic Author
Posts: 2
Joined: 16 Oct 2006, 08:51

random music selection

11 Jan 2007, 16:29

Hi!

I got 4 tracks in the music folder, but every time I load my gallery, it plays first track then second etc. Can Imagevue select randomly tracks to play?
 
User avatar
globetrotter
Imagevue Expert
Posts: 844
Joined: 18 Oct 2006, 13:16

12 Jan 2007, 05:25

Standard it is not possible in Imagevue. But there is a workaround for this:
pain wrote:To get mp3 tracks in random order every time just change in readfolder.php
Code
Line 25:
sort ($files);

to:
if ($ext=='mp3') shuffle($files); else sort ($files);
Rene
http://www.globetrotternet.nl/
 
User avatar
megastudio
Experienced
Posts: 28
Joined: 27 Jan 2007, 21:12

28 Jan 2007, 14:37

globetrotter wrote:Standard it is not possible in Imagevue. But there is a workaround for this:
pain wrote:To get mp3 tracks in random order every time just change in readfolder.php
Code
Line 25:
sort ($files);

to:
if ($ext=='mp3') shuffle($files); else sort ($files);
Making this alteration it goes to function the Rodom Way? I tried and he did not give certain!
 
lobster
Posts: 4
Joined: 19 Mar 2007, 10:50

random mp3

03 May 2007, 18:52

really useful and neat, thanks
 
boomtastic
Posts: 10
Joined: 08 Sep 2007, 16:38

09 Sep 2007, 15:03

Just wanted to add my thanks for this!
 
ata
Posts: 10
Joined: 26 Oct 2007, 04:02

01 Nov 2007, 07:44

Thank you this tips work.

Have a question :

I want use on config.ini template
audiopath = image folder.
Then when theyre is nothing in folder he will take song into my mp3alt

And now i want the mp3alt be random (shuffle)
But I want keep my own song to my imagefolder them.

So with your trick it was random for all site and you lost the song of your imagefolder.

Can you say me if we can work on it and how to change please
Thank you