My gallery plugin for WordPress is up and running now – there are still a lot of loose ends to tie up, but the principle is sound and it works well. Hopefully it’ll be tidied up eneough to let free in the world in a week or so, but first there are all the little bits like writing the options admin to do.
James Cameron, a (bloody good) photographer asked me to build him a new site to replace his current one: http://www.jcameron.org so I’ve been using this as the excuse to write a plugin, something I’ve been meaning to do for a long time. I decided to use WordPress as the base of the website. Now there are plenty of Image Galleries available for WordPress, but I didn’t feel any of them was quite right.
My Plugin (Flip Gallery) is designed to be as easy to use as possible, there aren’t going to very many options, no mass upload of zip archive, just fast and simple with everything thought nicely through. My one concession to modernity has been the decision to use a fancy gallery popup. The choices (for me) boiling down to lightbox and thickbox – these are both amazing little widgets and are functionally pretty equivalent.
In the end the things that swung it for me in favour of Thickbox are:
- Ajax functionality – load anything – not just an image (although I’m not using this yet)
- jQuery – 19kb (compressed) – awesome
- The back and forward links (sad I know)
I’d like to say have a look at the work so far on James’ new website – but I can’t really. Sorry!
Compare Lightbox & Thickbox
|Thickbox 2.1.1||Lightbox JS v2.0||Notes|
|Examples||Thickbox||Lightbox||I’ve set up a quick test – identical pages of html, identical images, the only difference is the one page is powered by Thickbox and one by Lightbox. Compare and Contrast, enjoy.|
|A matter of personnal preference. I have used jQuery and Prototype, I don’t think that Scriptaculous adds anything unfortuntely.|
||I like the use of rel – it’s good to keep your classes clean.|
|AJAX||Y||For me the additional features swing it to Thickbox for me, I love the idea of having an image gallery but to also be able to have notes about each image, via an iFrame or AJAX.|