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!

5 thoughts on “Using NextGEN Gallery and Auto Thickbox”

  1. Hey, I really appreciate that tip! I got super bummed after adding auto thickbox to my site, and seeing it ruin the nextgen effect. Now all is working perfectly. Thanks!


Leave a Comment