=============================================== Lazy Photo Gallery Version 2.0 by Sam Perkins-Harbin http://www.forge22.com Last Revision: 08 April, 2008 =============================================== You may modify this code as you wish, but please send me any modifications you do, and keep my URL on the footer! Rename the gallery file to index.php for it to automatically be your gallery, otherwise name it whatever you want. It must be used with the resize_image.php file to create the thumbnails. This program uses the image resize script to generate thumbnails on the fly for a directory. It parses directory structure, and outputs navigation. Thumbnails are generated for each image in a folder, as well as icons for the folders. You can specify how many thumbs are displayed per page, thumbnail size, and more. Read the options and comments below for more details. CSS colors and layout are standard and editable as well. CSS generates paragraph size based on specified size of thumbnail. Each paragraph contains the thumbnail, image dimensions and image filesize. TO DEPLOY: Rename the following and place in parent directory. index.txt => index.php image_resize.txt => image_resize.php lazy_gallery.css.txt => lazy_gallery.css htaccess.txt => .htaccess (must be renamed on server, XP can't handle no filename files) ----------------------------------- 26 February 2008 Big new feature! Lazy Gallery now supports mod_rewrite! Simply add the .htaccess file to your root folder and away you go! It's not enabled by default, so if you want to use it, you'll need to set the $rewrite variable to 1. The image name is now displayed in the title bar, if you use mod rewrite or not. 22 February 2008 Drop-In Photo Gallery is now Lazy Photo Gallery! TONS of new features, mods and enhancements. CSS ovehauled, cleaner code New options: - Name for your gallery, or let it be the folder it runs in - Random pic from current gallery displayed at top - Option to preview image inside of gallery. - Header prints number of folders and images in each album - Subfolder listing now grabs a thumbnail - Specify an icon for use in each subfolder (won't be displayed in the album) - Set size of subfolder icons (for adapting to your CSS) Fixes: - Readded support for PNGs and GIFs - Support for funny directory and file names like jpg, gif, or &'()[]{}~ etc. - Pagenav not displayed if equal number of images as limit to display - Folder nav not displayed - XHTML compliant - writes proper URLs and HTML code. 00 Xember 2007 At some point I did some mods here and never noted them, merging some ideas people gave me. Sorry! 17 August 2006 Changed the CSS - much brighter, now resembles a slide book or art gallery. Slides have slight shadows and bevels to the thumbnails. Modified H1 tag - tag now parses the folder you are viewing and writes it as the title. Changed the folder list view - now a pretty box list. Put page navigation links above and below the thumbnails. Modified some functions and grouped them together in the source code. Gallery now correctly displays the date each image was modified (uploaded). 12 February 2006 Made CSS a little prettier. Modified image resizer to resample images instead of resize. The result is cleaner, less jaggy thumbnails. Thanks to Kent at gen8x.net 15 December 2005 Gallery now supports PNG, GIF and JPG. Options to show/hide image names and extensions. 26 November 2005 Added security feature so upper-level directories cannot be navigated. Created an easier to follow breadcrumb navigation for directories. 20 May 2005 Now uses GD library to produce true color thumbs. Thumbs are scalable per dimensions passed from gallery script. 03 June 2005 Gallery now prints date of images. Support for hierarchical directories created from single gallery file. 02 June 2005 Thumbnails now display image dimensions. Brightened up the CSS a bit. Removed some unnecessary variables.