Archive for the ‘Lazy-K Gallery’ Category

Version 1.3.1 available – new link!

Monday, August 28th, 2006

Oops! A reader pointed out that I had not updated my download link. Visit the Lazy-K Gallery page to download the latest update.

Version 1.3.1 bug fixes

Wednesday, August 23rd, 2006

I took a little bit of time tonight to correct a few minor bugs and add some small features:

  • Fixed 404 error after submitting a comment
  • Sort slides and thumbnails consistently
  • Added ability to replace underscores in folder names with spaces
  • Properly handle quotes and dots in folder and file names

Thanks to Garrett Bartley for solving a problem with single quotes in file/folder names and Mike for help with dots in file names and replace underscores feature.

Version 1.3 released with Cache Manager

Saturday, June 24th, 2006

I released version 1.2 of Lazy-K Gallery a few days ago, and I recommended that you all delete your cache files to take advantage of the new design. Needless to say, I didn’t feel like deleting all my cache files (I have about 600 images in my gallery), so I added the “Cache Manager” in version 1.3.

The Cache Manager allows you to delete and/or create your cached thumbnails and slides. That way you don’t have to delete the files manually if you change the size of your thumbnails, etc. Also, it lets you get around the PHP execution time limit that many of us face. Whenever I added files to my gallery, I used to visit those pages in my gallery to let the cache build (instead of some poor visitor).

To use the Cache Manager, visit the Lazy-K Gallery Options page in the Admin Panel. At the bottom of the page is a “Cache Manager” button. On that page, just select which operations you want to perform and hit the button. Let that page sit there for a while and let your files process!

Let me know how things go. The new Cache Manager uses Ajax, which is new to me, so I look forward to your feedback.

Version 1.2 released

Wednesday, June 21st, 2006

I found a little bit of time to work on Lazy-K Gallery, so I’m releasing version 1.2. Here’s what I’ve worked on:

  • Prettied up the thumbnail view and cleaned up CSS
  • Changed the way thumbnail sizes are calculated to improve layout
  • Added ability to show filenames on thumbnail and slide pages
  • Provided ability to link (or not link to) full-size images
  • Cleaned up admin page
  • Added confirmation before restoring default options

Take a look at the options page, since I’ve added a few features you might want to consider.

I’d recommend taking a look at your thumbnail size, since I’ve changed the layout of the thumbnail pages. I thought the thumbnails page looked the best when all thumbnails are the same height, regardless of whether the photos are landscape or portrait mode. Personally, I now use 200 x 80 as my thumbnail size. I’d recommend that you change your thumbnail size, delete all your thumbnail folders, and let them rebuild (for the best results). Sorry I don’t have an automated way of clearing those thumbnails yet. If I release a script that deletes that many files, I want to make sure it’s working perfectly.

For those of you concerned with bandwidth, you can now stop linking to the full-resolution images.

Once again, if anyone has any suggestions for improvement, feel free to share.

Version 1.1.1 released with Lightbox JS support

Monday, April 24th, 2006

I put out a new version of Lazy-K Gallery to add basic support for the Lightbox JS script. If you have Lightbox JS installed, you can set an option on the Lazy-K Gallery options page to use Lightbox JS for displaying the full-size images (after you click on a slide). If you don’t set that option, the full-size images are shown in a separate window as they did before. Thanks to Scott McDaniel for the assist.

Version 1.1 released with per-picture commenting

Thursday, April 20th, 2006

I’m ready to release version 1.1 as a beta. I’m excited to share the ability to leave comments on each folder or picture in the gallery. Visit my Lazy-K Gallery page to download the latest version.

Please note that you’ll have to make a small change to your comments template in order to get per-picture commenting to work. It’s pretty simple though, and is detailed on the Lazy-K Gallery page and in the readme file.

Got per-picture comments working!

Wednesday, April 19th, 2006

After a few days of pulling my hair out trying to find the hooks I needed in WordPress, I’ve got the per-picture commenting working now. Take a look at my example gallery, see how it works, try it out, and let me know what you think. I’m not quite ready to release the code just yet, since I need to do some more testing. If you’re interested in trying out my changes and being a “beta tester” (not that any of my users HAVEN’T been beta testers yet :), leave a comment here.

As it turns out, there’s no pure plugin solution to the comment filtering problem in my previous entry, so I had to add a single line to my comments template. It’s pretty easy to do though. I’ve put in an enhancement request to WordPress to include a hook so the template change wouldn’t be needed.

Oh yeah, if you leave a comment in my gallery, keep in mind that I’m moderating all comments, so if you haven’t commented here before don’t be surprised if you don’t see your comment right away…

Working on per-picture comments…

Sunday, April 16th, 2006

By popular demand, I’m working on adding the ability to leave comments on a per-picture basis in Lazy-K Gallery. I have an idea on how to do it, but I’m still missing one piece of the puzzle. I haven’t spent an awful lot of time researching yet, but if someone knows the answer it would speed along my progress.

What I’m looking for is a WordPress API filter or action that would allow me to control which comments get displayed on a given WordPress page. In other words, suppose there are ten comments on a given page- I want to only display the ones that meet some criteria. I tried the “comment_text” filter, but that only let me control the actual text of the comment. The comment author, date, etc. cannot be modified. Perhaps “preprocess_comment” is what I’m looking for, but I haven’t found any good documentation on it just yet.

At any rate, I’ll keep working on the comments and hope to release a beta before too long if I can solve this problem.

Lazy-K Gallery version 1.0.4 released

Thursday, March 30th, 2006

I made a few more refinements to the Lazy-K Gallery and have released it as version 1.0.4. Here are the changes:

  • Added ability for user to specify folders and files to exclude
  • Admin page cleanup, including reporting the installed version
  • Added confirmation messages on admin page
  • Added functionality for migrating options from older versions

I’ll tackle some more big items when I have more time, but these few little tweaks should make the gallery work better for most people.

Version 1.0.3 released

Wednesday, March 29th, 2006

I found a little bit of time to work on the Lazy-K Gallery tonight and did a little cleanup. I’d recommend this upgrade for any users of 1.0.2. There were some embarassing mistakes that were corrected in this version.

If you’re upgrading, make sure visit the options page. I changed the way the gallery paths are determined, so you should make sure your path is ok still. Also, to correct some configuration problems introduced earlier, click the “restore defaults” button. You’ll have to re-enter your gallery path after restoring defaults.

  • Changed the way the gallery path is determined again
  • Added the ability to restore default settings
  • Corrected Firefox “next” and “prev” button rendering
  • Added display of the actual directories being used on the admin page
  • Initial support for ignoring files. This version ignores files with the string “thumbnail” by default.