| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2007
Posts: 28
|
Anyone know what this is?
Can anyone tell me what they are using to make their gallary work this way? Some sort of software/application/program/whatever? Thanks! Tibidabo Photography : Portfolio : Wedding Gallery |
|
|
|
|
|
#3 (permalink) |
|
now with added beard
Join Date: Mar 2004
Location: Liverpool
Posts: 4,927
|
its javascript ... you prepare all your images, thumbs and layout .. and javascript controls how it all works .. view the page source - and all the code is there to see .. fuck signatures
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Apr 2007
Posts: 28
|
Thanks! I'm wondering if there is some sort of program they use to make updating and adding photos easier. Doing it all manually would take a while. I have a client that wants something similar to that and he'd like to make updates himself. (hence the reason manually doing it is not really an option) |
|
|
|
#6 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 1,293
|
I created a gallary recently that while not the same as this, isn't so different either. To make it really easy to update I did the following: 1) the index page searches for and lists all the folders in the same directory as it. It then replaces all underbars with a space. This means that all folders named "folder_name" are shown as "folder name" 2a) The links to all the folder names all lead to the same script, photo_album.php. However, a $_GET variable with the folder name is appended onto each link to identify the folder. 2b) When a user clicks on a link, it takes the user to photo_album.php, grabs the $_GET variable out of the URL, and then creates an XML document that indexes every image in the folder specified in the $_GET variable. 3) The images are then loaded based on that XML document. 4) I then use SJAX (like AJAX, but not synchronous) to grab the XML file, and then use javascript to manipulate the images in the way I want, basing everything off that XML file. Since the index page and the XML documents are all created on the fly, its VERY easy to add new albums - I just drop one into the main folder, and my scripts index everything automatically. I don't have to program anything. Anways, I'm sure there are multiple ways this can be done, but above is the method I used, and it works for me. Good luck! |
|
![]() |