Archive for April, 2006

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.