#1
|
||
|
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! |
#2
|
||
|
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:
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
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! |
#4
|
||
|
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 Last edited by pinkish; 12-05-2007 at 03:17 AM. |
#5
|
||
|
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 |
#6
|
|||
|
Quote:
Can someone will help me with that please? |
#7
|
|||
|
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:
|
#8
|
|||
|
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:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHAlbum modified to display all albums contents at once | sixer | phphq.Net Forums | 0 | 03-02-2010 08:20 AM |
Got 3 Albums Out Now! | Troy | General Chat | 3 | 11-05-2007 04:49 PM |
The Order is recruiting | cyclops | Gaming Talk | 0 | 01-04-2005 04:27 AM |
Big 'Order' | Mr_ReAp | Sigs and Graphics | 4 | 05-26-2004 09:35 AM |
upgrate on order... finally | Steve | Hardware and Software | 23 | 04-14-2004 10:50 AM |