Categories
General

Photopress and Lightbox 2

Thanks to Steven for telling me about this issue!

Lightbox 2 has a cool feature where it’ll automagically add code to images in your posts so they’ll work with Lightbox. This is great until it runs into the Photopress album and breaks stuff. To fix this easily, you can turn off the auto-lightbox feature in the Lightbox 2 settings. But what if you like auto-lightboxing?

The function that does auto-lightboxing is around line 60 of lightbox2.php. Adding this “if” to detect the Photopress album (actually “pp_wrap”) and avoid auto-lightboxing seems to do the trick:

function autoexpand_rel_wlightbox ($content) {
/*add this--->*/ if ( strstr($content, 'pp_wrap') ) { return $content; }

Of course, then you’d need to re-do this hack every time you upgrade Lightbox 2…

Categories
photos

Tiny empty

The Potomac along Hains Point floods now and then, washing up all sorts of interesting stuff…like this tiny bottle.

Categories
photos

Oscar takes a break

Our cats grew up in an apartment so they’re mostly indoor kitties, but in the summer we let them wander around the backyard while we watch, keeping them from eating birds or doing other goofy things. Oscar usually gets bored after a while and comes back to the deck to lay on this foot stool.

Categories
photos

Artomatic

We got a quick taste of Artomatic before going to a baseball game and had to go back the next day to check out the whole thing. The wide variety of art there was amazing – I’m sure we’ll be back this year.

Categories
photos

Kitty prints

Penelope tried to go for a walk, but didn’t make it very far. She likes to go out to chew on grass, but there’s no telling when she’ll be able to find anything other than snow out there.