Remember my free mini ASP.NET web application Visual Gallery? Well its long lost PHP brother is here! And again, it is FREE. All I ask for is a little credit. This time however I made it better with a little help from the JavaScript library jQuery and its plugin jQuery Lightbox which really helped speed up the process! Thanks guys, you get a ton of credit from my part.
Currently there is no documentation on this app. However before using it there a couple of things you should know.
You should know
- You need ‘write’ permission on the directory where you plan to house your galleries. This application generates resized images and thumbnails and stores them on your server. Without the permission the application will not work.
- This application puts ALL the thumbnails of your gallery on the same page. So if you have a million pictures, it will show a million thumbnails. Some web users like myself might find this bothersome. I will try to change it in the future but keep that in mind for now. My recommendation: make different galleries for different things.
- The application might not like and therefore might not link up thumbnails and full sized-images with special characters correctly. Again, will be fixed at a later time. For now try to avoid odd characters in your gallery images names.
- This application only supports (at the moment) JPEG images. Sorry GIF lovers, maybe on the next update.
- Don’t forget to add your own title on the ‘index.php’ file and for search engine optimization I recommend changing the ‘author’ and ‘description’ meta tags on the html head to fit your needs.
- Give lots of love to the jQuery folks and a little to myself. Maybe in the form of a donation to help me pay my hosting? Try the app first though, make sure it works for you.
Installation
- Make sure you have ‘write’ permission on the folder you wish to store your galleries. You might be able to use your FTP software to change the permission. I recommend setting the permission to CHMOD 0755.
- Go into the file ‘index.php’ and change the gallery title and meta tags (optional) to fit your needs.
- Copy all the .img files to a subdirectory in your gallery’s directory.
Example:
Main gallery: “/pictures/”
Where to put .img files: “/pictures/italy2009/” or “/pictures/mycars/”.
- Delete the sample image’s and any subdirectories i’ve included in the ‘images’ folder that came with this application.
- Rename the htaccess.txt file to .htaccess
- Upload your own image files via FTP to the ‘images’ folder that came with this application.
- Use your web browser to navigate to the location of the subdirectory where you placed the .img files. On the first run the application might take some time to load. This is because it is creating thumbnails and resizing your images (if it thinks theyre too big) in the background. After that is done, it will load much faster, as it has no more images to create.
Also
If you plan to add/remove/rename images from the ‘image’ directory, it is best to delete the ‘thumbs’ and ‘resized’ folder and rerun the application. This is because eventually you’ll be left with unused, leftover images in those directories which might confuse you later.
Demo: http://quinterox.com/shared/handled/dotimg_v1.12J/
Download: .img (36)


Thu, Jun 11, 2009
Downloads, PHP