Welcome to WebmasterWorld Guest from 54.161.130.145

Forum Moderators: incrediBILL

Message Too Old, No Replies

photo gallery

     
8:48 pm on Apr 9, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 21, 2011
posts: 59
votes: 0


Hi looking for a way to get a photo gallery to read a directory of image files and display them but without having to enter the name of each file as this is a gallery that will change on a regular basis .

I have looked around but am coming up dry

Pete .
4:14 pm on Apr 11, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


You'll probably need some sort of server side programming to read the directory - PHP, Perl, ASP . . . you might look for "PHP static gallery" or something like that.

You won't likely be able to do it with Javascript as there are security limitations on what Javascript can do - reading the file system is among them.
5:00 pm on Apr 11, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 21, 2011
posts: 59
votes: 0


OK ta i will have a look see

Pete .
3:49 am on Apr 21, 2011 (gmt 0)

New User

5+ Year Member

joined:Apr 21, 2011
posts: 8
votes: 0


rocknbil +1
Alternatively (JavaScript)
You may list the files in the hidden iframe (href="image folder name") then get the innerhtml from iframe and manipulate by javascript.
12:45 pm on May 8, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 21, 2011
posts: 59
votes: 0


right then well problem solved very easily in the long run

code: for f in stagepics/*jpg ; do echo "<a class=\"thumbnail\" href=\"#thumb\"><img
src=\"$f\" width=\"100px\" height=\"75px\" border=\"0\"><span><img
src=\"$f\"></span></a>" ; done > pics.html

works a treat in Linux i have no doubt it can be modded for use under wnders
HTH someone

Pete .
6:55 pm on May 8, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 2002
posts:742
votes: 8


Search 'Automatically Generate a Photo Gallery from a Directory of Images' and you will have plenty of choices.
11:38 pm on May 8, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 21, 2011
posts: 59
votes: 0


Hi
i had found a few but for one reason or another they did not seem right (personal likes and dislikes i suppose) one hing i will say about the script if like me you like your cose to look tidy then it all needs to be on one line
12:29 pm on June 2, 2011 (gmt 0)

New User

5+ Year Member

joined:June 2, 2011
posts: 8
votes: 0


[web-kreation.com...] - That website offers a few that I like. If you have any problems or need anything specific to your needs, feel free to contact me.

Robert Mitchell

[edited by: incrediBILL at 12:39 pm (utc) on Jun 2, 2011]
[edit reason] sigs removed [/edit]