Stephen R. Blair

Simple Gallery

by Stephen Blair on Apr.10, 2009, under Web Design & Development

Rate Our Program

Excellent!
Very Good
Good
Fair
Poor

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:

:, , , , , , , ,

11 Comments for this entry

  • mohdshanaz

    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.

  • dingo23

    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.

    • Stephen Blair

      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.

  • dingo23

    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.

  • dingo23

    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?

    • Stephen Blair

      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.

  • h2bh

    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?

  • ibexcentral

    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

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...