what is the order of the albums and pictures?
Hi,
I've installed and customized phAlbum (i am pretty good with HTML). The only thing I don't know how to do is to put the albums in a certain order. I've tried renaming them: 01.Pics_blabla 02.Bla but it doesn't seem to work. What I can see is that the order in which the folders/images are picked up is NOT random, because it is the SAME order on every computer I've loaded it. The question is: the order in which phAlbum reads and displays all the files and folders is based on what exactly? Thank you! |
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:
PHP Code:
|
Hey, man! I would like to thank you for your reply! It's absolutely fantastic for me to be able to use this software!
Again, thanx for the code! |
Based on your script, I can arrange them in any order, by doing this:
PHP Code:
0899_Folder_I_want_first 0900_Second_folder 0901_3rd_folder I know it's a newbie thing but it works like a charm! PS: i've also removed the code for the trailing directories, cos i didn't want that and they looked ugly with all the numbers :) |
Hey Scott, I tried your code but it doesn't work. When I want to view my photos or directories, I always get the same error: "No images to display in this album. Please pick another album."
Do you got any solution for this or do you have any other code that should work? Thanks! Pirata |
Quote:
Can someone will help me with that please? |
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:
|
Sorted it using rsort..
//Lets get some images!! $dir = $full_server.$album.'*'; //Loop through them all ;). $all_files = (glob($dir)); rsort($all_files); foreach($all_files as $file){ Thanks Adam Quote:
|
All times are GMT -5. The time now is 12:49 AM. |
Powered by vBulletin®