SSP/LR & Shadowbox JS
This post shows you how to embed your SlideShowPro for Lightroom slideshow into your WordPress blog using the ShadowboxJS plug-in.
The ShadowboxJS plug-in is used to embed different things into your blog. A Flash object is one of those things. We’re going to use it to embed our slideshow and make it ‘pop up’. These directions should pretty much work with other *box scripts (you’ll need to modify it though).
Install the Plug-In
The first thing you need to do is to install Shadowbox JS. That’s pretty simple. You can get the plug-in by going to the “Add New” option in your Plugins panel. Just search for Shadowbox JS.
Create The Slideshow
Nothing special here. Create the slideshow however you want. It doesn’t matter. Go nuts. Just write down the final dimensions (add some to the height if you’re using the Wet Floor).
For this example, let’s assume that I’ve set my width to 500 and my height to 400. I’m using the Wet Floor, so I’m going to write down 500 for my height.
You may want to make considerations for you blog (colors, sizes, etc).
Upload the Slideshow
Upload the slideshow somewhere on your site. I prefer to keep all of my albums in a directory called /my_galleries.
- I’ve exported my slideshow to a local folder named
gallery3 - I’ve uploaded the exported folder to my website so I now have a folder called
/my_galleries/gallery3 - To the outside world, my slideshow object is located at /my_galleries/gallery3/loader.swf (you can click on it and see it)
- Write that down
Create The Post With The Slideshow
- Create the post like normal
- Figure out what image you want to use as your slideshow preview (I chose /my_galleries/gallery1/album1/thumb/_MG_3380.jpg; it could anywhere on your site)
- Switch to the Code editor
- Enter the following code into the post where you want the slideshow to appear (modify the code to suite you; don’t insert my slideshow!):
-
<a href="/my_galleries/gallery3/loader.swf" rel='shadowbox;height=500;width=500;options={flashParams:{base:".",allowfullscreen:"true"}}'><img src="/my_galleries/gallery3/album1/thumb/_MG_3380.jpg"/></a>
Preview The Post
If you’ve done everything correctly, you will be rewarded with a post and a slideshow that looks something like this (click on the image):
Using Director
If you used Director to create your slideshow, then you probably don’t have any images in your slideshow folder. That makes picking a preview image a bit tricky (everything else will be the same though). The way I see it, you have the following options:
- Upload an image using WordPress
- Use the Director interface to show you the URL and then scale it down
The first one is going to be the easiest since the post editor allows uploads.
If you want to use the Director image, be warned. The image is large. However, here’s how you would do it:
- In Director, edit the album content
- Double-Click on the image you want to use as your preview
- In the content editor, click the “view” button. A new window will pop up
- Use the URL in the new browser window for your image
- Make sure you scale it down like so: <img src=”….” height=”50%” width=”50%”/>
October 31st, 2009 at 10:50 pm
how can we have it start automatically? I’m using a similar method but cant star the ss on load…
December 24th, 2009 at 3:30 pm
You can set the slideshow to automatically play on start-up by using the Lightroom interface.