The Lightbox gallery plugin by Hiroaki Miyashita is located here in the WordPress repository.
In the installation section, it states:
1. Edit the lightbox-gallery.js and check the path of line 2 according to your settings.
2.Copy the lightbox-gallery directory into your wp-content/plugins directory
3.Activate the plugin through the ‘Plugins’ menu in WordPress
4.There may exist localized images in ‘images’ directory. Replace default images with them.
So, it appears that the first thing I have to do is head over to the javascript file. That seems unlikely for a WordPress plugin, but that’s what it says…
Here are the opening lines of the javascript file. I had to open the file with Dashcode after accessing it via FTP.
if ( typeof lightbox_path == "undefined" ) var lightbox_path = 'http://'+location.hostname+'/wp-content/plugins/lightbox-gallery/';
if ( typeof hs != "undefined" ) {
if ( typeof graphicsDir != "undefined" ) hs.graphicsDir = graphicsDir;
else hs.graphicsDir = 'http://'+location.hostname+'/wp-content/plugins/lightbox-gallery/graphics/';
}
What does it mean where it says “Edit the lightbox-gallery.js and check the path of line 2 according to your settings.”
I googled and found a post on a Facebook page written by Emoxis that explains that the default path assumes that you installed WordPress in the root folder. If WordPress is not in the root folder then you need to edit the path in this line:
var lightbox_path = "http://'+location.hostname+'/blog/wp-content/plugins/lightbox-gallery/";
Well that makes sense. As it happens, WordPress is installed in the root folder of Photographworks.com, so I don’t need to edit the javascript folder.
in other words, in the vast majority of cases, you can ignore “check the path of line 2 according to your settings”.
Using The Plugin
The first step is to import the images. But instead of inserting them into the post, just save them – one after another into the gallery.
Then just click to insert the gallery and you will see the word ‘gallery’ in square brackets appear in your post.
That’s it. And here are the three images I uploaded. Click the images to see how it works.
Comparison With Standard WordPress Gallery
I had an earlier version of this plugin installed on this site about 18 months ago – and I had problems with it. So I uninstalled the plugin and you can now see the standard WordPress gallery working here.




{ 5 comments… read them below or add one }
Signed up for a self-hosted wp again last night, so now I’ll have that for one year. Will keep it totally separate from my regular WP blog. I’ll just play with it and make up my mind later, about what I’ll do with it.
So the coolfeline purrs – sounds good, even with the ‘wrong’ domain name
Ahhh now that is something i can use on my site, looks better than the nextgen i am using now
Dillon Gray recently posted..Telcia and Eric’s engagement shoot
Hello David,

Nice plugin, it seems to work better than the standard wordpress gallery. I just wonder if putting many photos makes the website slow to load.
Thank you for sharing
Elena Anne recently posted..Vegan & Vegetarian: Similarities and Differences
On our main site we are just in the process of switching to a content delivery network to make pages load faster.
I really don’t know whether more images loaded into the gallery would increase page loading times. I have not seen any added strain when looking at the usage with just these few images.
{ 1 trackback }