Photopress/Lightbox Patch

Ever since I moved over to using the WordPress content management system to host this website I have been using a relatively small number of plugins. One of my most used is Photopress which you can see in use almost everywhere you see a picture.

However, late last year I realised how much one, small part of the functionality irritated me. You could either view a full size picture in a page on its own, but I’d never managed to create a template that worked well for both portrait and landscape images. Or you could have each image pop up in another window. I wasn’t keen on that either.

I eventually decided to “scratch an itch” and implement option number three. I’d found and liked the “zoom” effect provided by the Lightbox JavaScript library, and so decided to use that.

I did offer the patch to the author of Photopress, but I have heard nothing from him so find my changes here.

You’ll need to follow the following few steps to do the same with your own site:

  1. Disable the Photopress plugin if you already have it installed
  2. Download the Lightbox Javascript library and install it on your webserver. I put it in wp-content/lightbox ((You’ll need to keep the same directory structure as in the LightBox ZIP file. For example, you should see three directories “css”, “images”
    and “js” Inside the “lightbox” directory on the webserver.)). Remember where you put it as you’ll need it again in a couple of steps
  3. Download and install the plugin. If you don’t have Photopress, try this full version. If you already have Photopress 0.9.5, you can download either the only file that’s changed or this patch file
  4. Activate the plugin
  5. Go to the Photopress Options screen. Look at the bottom of the screen. Here you can enable/disable the Lightbox effect and point Photopress to the Lightbox Javascript routines
  6. Also make sure that you have switched off the “Link to Album” feature ((Thanks to Roman Seibel for figuring this out.))
  7. You’re done

Please let me know how you get on. Hope you like it!

4 thoughts on “Photopress/Lightbox Patch”

  1. Cool solution!
    I used Image Manager + Lightbox before, but it was buggy and quited after a while, could never get it to run afterwards. Photopress was a good replacement, but I missed the cool Lightbox effect, there it is, simple to install and it works!

    Brilliant, THX!

  2. Note that the latest version of PhotoPress (1.02 at the time of writing) already includes similar functionality. And, despite documentation to the contrary, it does seem to work on WordPress 2.0.x.

Comments are closed.