PHP Speedy and Lightbox
I’ve talked before about the excellent PHP Speedy application - both a PHP script for your website or a WordPress plugin. However, as with all apps of this type, it doesn’t always “play ball” with everything.
In this case, I use the Lightbox 2 plugin for WordPress and, well, PHP Speedy has a tendency to break it.
So, having spoke with Leon at Aciddrop, I have the following fixes (this works on the current 1.8.2 version of Lightbox 2).
First of all, find the following line in lightbox.php:
$lightboxscript.= “<script type=\”text/javascript\” src=\”".$lightbox_path.”js/scriptaculous.js?load=effects,builder\”></script>\n”;
Replace this with:
$lightboxscript.= “<script type=\”text/javascript\” src=\”".$lightbox_path.”js/effects.js\”></script>\n”;
$lightboxscript.= “<script type=\”text/javascript\” src=\”".$lightbox_path.”js/builder.js\”></script>\n”;
Next, open up lightbox.js and before any of the code, add the line:
lb_path = “http://www.artiss.co.uk/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/”;
Obviously, you will need to change the path to wherever your lightbox folder is.
And then, as if by magic, all should work. If you find that photos appear but without any buttons, then it’s the second fix (the one to lightbox,js) that fixes this, so look again at this. If the change to lightbox.php doesn’t work then, well, the lightbox won’t work at all (the picture will simply be displayed normally).
Hopefully, this might help someone ![]()

