Simple Gallery
by Stephen Blair on Apr.10, 2009, under Web Design & Development
Simple Gallery is one of the most simple, yet professional looking, image galleries you will find out there. Upload a few files, point it to a folder with your images in it and be done!
Simple Gallery is available to all registered users for FREE. If you are registered and logged in please click the download link below. Please post all support questions here as comments and I will get to them as soon as I can.
Download: Simple Gallery
Demo: www.srblair.com/simplegallery
Other PHP Scripts:
- AdManager Light v1.0 – The best way to manage your ads!
- SunShop Shopping Cart Software – A complete ecommerce solution packed with and extensive feature list.
- PHP Live Helper – Provide reliable real-time customer support and visitor communication directly on your site.






June 10th, 2009 on 11:05 pm
i’ve tried your application patch on simple gallery. the problem is that, some image that i’ve load into image file can’t be opened. is it the image size or scale or anything else? other just work fine.
June 11th, 2009 on 11:45 pm
Most likely it is a bad image, or invalid image type. The images must be .jpg images to work with the gallery.
September 3rd, 2009 on 4:14 am
Hey, Love the script, simple and easy and looks great, but I’ve found a bug that I thought I’d bring to your attention and see if it can be fixed, it’s on your demo as well.
When you try to click a link to leave the gallery page it’ll attempt to open the new page in a fancy box and I don’t know how to fix it.
September 3rd, 2009 on 9:46 pm
Sorry about that, here is the fix…
on line 15 of the index page change
$("a").fancybox();to
$("a.image").fancybox();On line 26 of the index page add class=”image” to the link tag like
<a rel="group" href="'.$dir.'/'.$disImage.'" class="image" rel="nofollow">The code originally told every link to open as a fancybox, this fix will only tell links with the class “image” assigned to them to open in the fancybox. Let me know if you have any issues.
September 4th, 2009 on 1:28 am
Awesome, Thanks for the fast reply. Love this script. it’s pretty simple to set up and merge it into an existing design, I’ve been looking for something like this for a long time and it works great with that fix.
September 16th, 2009 on 10:06 pm
Hey, Just one more question. Is it possible to be able to add captions to the images, either in the gallery view or the popup fancybox?
September 17th, 2009 on 2:26 pm
Off the top of my head about the only thing you could do is to have the filename of the image as a caption (image.jpg) when the image is opened with the fancybox. The script simply reads all images in the images folder defined and displays them.
To do this you would:
On line 26 of index.php…
Replace:
<a rel="group" href="'.$dir.'/'.$disImage.'" class="image"><img src="'.$dir.'/'.$disImage.'" height="'.$maxheight.'" width="'.$maxwidth.'" /></a>With:
<a rel="group" title="'.$disImage.'" href="'.$dir.'/'.$disImage.'" class="image"><img src="'.$dir.'/'.$disImage.'" height="'.$maxheight.'" width="'.$maxwidth.'" /></a>Adding the title=”‘.$disImage.’” will add that filename as the caption at the bottom of the fancybox when it is opened.
September 25th, 2009 on 10:20 am
Heya Blair, testing ur script now atm.
Warning: Invalid argument supplied for foreach() in L:\xampp\htdocs\simplegallery\index.php on line 25
Whatsup with that?
September 25th, 2009 on 11:13 am
It could be that the script is not seeing any images in the directory you defined on line 2 of the config.php (
$dir = 'images'; //Path to Image Folder). Double check and make sure the path to your images folder is correct.October 26th, 2009 on 6:48 am
Hi,
I love this simple easy to use script.
What needs to be changed so that the images are sorted/ displayed in ascending name order? for example image 01 – Photo starts top left followed by 02 – Photo to the right and so on.
Cheers
Paul
October 27th, 2009 on 8:28 am
In the index.php file place
sort($image);right above line 25 which readsforeach($image as $disImage) {. This will sort the images by their file names ascending.