Is there a simple way to reverse the order so it will display the most recent images first when the file name is the image date / time ?
Thanks
Adam
Quote:
Originally Posted by Scott
To be honest, there is no exact order. To put the files in order you will have to change the code.... look for this bit of code (Starts near line 514):
PHP Code:
//Lets get some images!!
$dir=@opendir($full_server.$album);
//Loop through them all ;).
while($file=@readdir($dir)) {
and replace it with this:
PHP Code:
//Lets get some images!!
$dir = $full_server.$album.'*';
//Loop through them all ;).
foreach(glob($dir) as $file){
$file = substr($file, strlen($dir)-1);
That should order them alphabetically.
|