Forum Moderators: coopster

Message Too Old, No Replies

php photo gallery script help

         

WhosAWhata

3:54 am on Nov 26, 2003 (gmt 0)

10+ Year Member



One of the features of my website is a nice picture page with friends and family. As a begining webdesigner about a year ago with absolutely NO experience with PHP, I used Hotscripts or something similar to find a gallery to show my pictures. Up until now this gallery has been perfect, and I've made many modifications along the way. The only problem is that is displays all of the thumbnails on one page. At the beginning, 20 pictures was fine, but now I have over a hundred pictures, and it's really slow. I really don't want to throw out this script as I have it looking much as I like it. I would really appreciate it if someone would either help me modify this script, or show me how and I'll do the work. Most of the script can be left alone, I just posted the whole thing to show what it really does. THANKS

<snip huge code>

If this is too much work, let me know and I will just find a new base script. I really appreciate your help.

[edited by: jatar_k at 6:23 am (utc) on Nov. 26, 2003]
[edit reason] removed code [/edit]

jatar_k

6:28 am on Nov 26, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



wow that was a lot of code

It doesn't really look like that script has any limit, it just scans for anything in the thumbs directory and outputs everything. I don't see any limit involved.

Have you ever looked at gallery?
gallery.sourceforge.net

a very sweet script

WhosAWhata

8:11 pm on Nov 26, 2003 (gmt 0)

10+ Year Member



I love that script, unfortunately I am curently not able to use MySQL

jatar_k

8:19 pm on Nov 26, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Have you thought about doing your own? Gallery scripts are pretty easy. You could have a nice little image uploader which could make the thumbnails as it uploads instead of doing them when someone views the page.

Then you could employ a similar directory scanning function. You could maybe give the images numbered names and use that to help with controling the number of images or last/next linking.

don't know but it wouldn't be exceptionally difficult.

this would help you get started
Image upload and Thumbnail Generator [webmasterworld.com] - msg 29

now that uses mysql, but if you combine the generator with the directory read functions then you will be most of the way there. ;)

WhosAWhata

1:58 am on Nov 27, 2003 (gmt 0)

10+ Year Member



thanks for your help I was in fact able to get that gallery script you recommended to run