Using NextGEN Gallery and Auto Thickbox

After many attempts, I finally have the NextGEN Gallery plugin working together with the Auto Thickbox plugin. I use NextGEN Gallery for the Photo Gallery pages on this site because I like the way it manages photo albums and galleries. However, I also like to include images in posts outside of NextGEN Gallery’s control. I wanted all of the clickable images on the site to be displayed using a Thickbox, e.g. the fancy popup frame that shows a larger image and the photo title. NextGEN Gallery can handle the images in its albums, but any images in regular posts would just display the raw image file, i.e. no Thickbox frame or site wrapper. When I added the Auto Thickbox plugin to the site, NextGEN Gallery and Auto Thickbox were in conflict since they were both attempting to add a Thickbox to the album images. To get both plugins to work together, I did the following:

Within NextGen Gallery Administration:
Under Gallery -> Options -> Effects:
Set JavaScript Thumbnail effect: Custom
Link Code line: class=”thickbox” rel=”%GALLERY_NAME% nobox

The “nobox” option instructs NextGEN Gallery not to add the Thickbox code. This then allows Auto Thickbox to add Thickbox code for all clickable images (including images in NextGEN Gallery managed albums). No more conflict!

About John Dalesandro

My name is John Dalesandro and I am a software engineer based in New Jersey. My experience covers all aspects of the software development life cycle with a primary focus on enterprise web applications.