Page 1 of 1

php gallery help please

Posted: Tue Nov 04, 2008 4:16 pm
by rubber-chicken
http://www.rubber-chicken.co.uk/autogeneratinggallery

ive been messing with this script i found online, but im stuck adding my own changes. hope you guys can help


i want it to automatically create thumbnails so i only have to add the large file

i need them to appear in date modified order, latest first

i want it to use lightbox.v2 to show the full size images, and is there a way to add information about the pics so lightbox presents it.

and finally how do i sort it so only shows say 10 images per page and it adds page number links

wow thats alot :oops:

i dont want to use database in any of the changes

my files are here http://www.rubber-chicken.co.uk/autogen ... allery.zip

please any help would be great

Re: php gallery help please

Posted: Tue Nov 04, 2008 4:33 pm
by Jade
I suggest you start with these links. I'm glad to help, but I'm not just going to hand you an answer. Teach a man to fish, right?

Thumbnails: http://us2.php.net/imagecopyresized (this will also reduce their file size so they don't take forever to load)

Lightbox: http://www.huddletogether.com/projects/lightbox2/#how (use php to display your image information after the image src)

Limit & date modified: mysql_query("SELECT * from PHOTOS order by date_modified DESC LIMIT 10") also see http://dev.mysql.com/doc/refman/5.0/en/ ... -rows.html

Re: php gallery help please

Posted: Wed Nov 05, 2008 8:26 am
by rubber-chicken
could you not hand me a little :) im really stuck, never really used php before