I’ve shared about 2 wordpress plugins I use to support photo blogging before. Well, here’s the update, after using Lightbox for some time, I found it really thirst of resource, and was causing heavy load on my blog. I was truly amazed by its work, but I can’t tolerate the load any longer. So I decide to find another solution. Well, looks like I’m not the only one, and even better, someone else has done the slimming process to Lightbox load and came up with Litebox, a much lighter version of Lightbox. Perfect! So next step is to seek for Litebox plugin for WordPress. Didn’t take much time to find one 😛

I downloaded it, tested it locally and found it worked perfectly. So I installed it to my blog right away. Tada, came up with a small problem. It can’t locate 2 images, the loading and the close button. I checked the source a bit, and found the problem. It was because I’m using static URI, date and name base permalink. The javascript didn’t translate the image location correctly. The fix is simple, open litebox-1.0.js in js folder and seek for this line:

var fileLoadingImage = "wp-content/plugins/gblitebox/images/loading.gif";
var fileBottomNavCloseImage = "wp-content/plugins/gblitebox/images/closelabel.gif";

All I did was added a slash at the beginning of the string so it would look like this:

var fileLoadingImage = "/wp-content/plugins/gblitebox/images/loading.gif";
var fileBottomNavCloseImage = "/wp-content/plugins/gblitebox/images/closelabel.gif";

Very simple fix huh? but I didn’t work it out instantly. I edited the file a few times but uploaded a different file with the same filename from another location. It took me half an hour to realize it 😮 phew.

One thought on “Photo Blog Plugin

  1. Glad to see you got my Litebox plugin working. I must get around to updating that and the Thickbox one someday with some new features.

  2. Hi Gavin, it surprised me to see you here (^_^) but i’m really glad you did. I thank you for the plugin, but i don’t know which thickbox you’re talking about.

Leave a Reply

Your email address will not be published. Required fields are marked *