For the site I’m working on it is likely the forums will have lots of photo posting and those photos could be large. As such, we wanted a way to auto-resize the posted photos but allow access to the full sized photo. Enter AIR-Box.
I tried installing AIR-Box with AutoMod. I kept getting errors. I tried forcing the install. It said the install succeeded, but none of the required changes were present. In the end I manually installed the plugin. I was still having problems.
Part of the problem had to do with WP-United. WP-United removes parts of the PHPBB code in order to avoid having two
</body> tags in the same page. It was cutting off the page at a crucial part for AIR-Box. I moved the code and was still having problems. I found that the class “postimage” was not being attached to the photos. I think this was because I was using a subsilver2 theme in PHPBB and the plugin is made for prosilver or subsilver. I found the template bbcode.html in the subsilver2 style and edited the code there. You need to add both the
class="postimage" to the image and a
<a> tag with a
rel="lightbox" around the image for the effect to work. Once that was complete, the resizing worked. The lightbox still did not work.
alert calls to see what was happening. It seemed as though the mootools being used wasn’t working for some reason. AIR-Box uses a free lightbox script called slimbox, so I went there to see what they had. There was a new version and a separate version that used jQuery instead of mootools. I downloaded that version and substituted that into airbox.js. At last I had success.