integrating swf

Hi,

I posted a thread on ‘Off Topic’ a few days ago but further investigation concerning the problem - smooth integration of a slideshow pro gallery has led me here.
I set up a site with several slideshowpro galleries generated from Lightroom and used the iFrame action to locate them. Although this method worked smoothly with a Simpleviewer gallery on another site it doesn’t work quite so well with SsP. Going by a search on the Ssp forum using iFrame is NOT recommended. However, their recommendation and method is very confusing, the freeway manual suggests importing .swf files into an html box although it doesn’t specify which, there are several in the Ssp package. Anyway tried them all and it doesn’t work.
Has anyone added a Ssp gallery and have a good easy to understand workthrough.

regards,

seoras


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I haven’t tried this particular swf generator, but I have had to work with lots of others. One thing you might look at is the structure of your site, in terms of folders and sub-folders. Many times, a swf file will “call” another swf file for data, and when it does, there’s a lot of different ways it can do that. For portability’s sake, most of these use relative linking, which means that if the master swf file is in the Resources folder (where Freeway will put it) it may be looking for its friends in the same place.

One of the easiest ways to get this placement for the other files is to use Upload Stuff (http://freewayactions.com) or Extra Resources (Docs - Softpress Talk) to upload these extra files. Just put them into the Action interface within the “With Resources” section.

Now all of this will take some testing, but here’s a quick way to test this theory: When Ssp makes a gallery, does it publish an example “index.html” to go with it? If so, look through that for the clues. If it publishes an entire folder of stuff, like this:

/demo_folder
    index.html
    movie1.swf
    /movies
        movie2.swf
        movie3.swf

Then that would be a clue that you need to create a ‘movies’ folder (manually, using an FTP app) within your Resources folder, so that a swf file living inside the Resources folder can open a URL like src="movies/movie2.swf" without giving up and going home.

This is just an example, I haven’t any idea what the particulars of this application are. But this is one way I would go about trying to track the answer down.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter,

Lightroom/Ssp plugin outputs a folder (your specified name) to desktop or can be uploaded directly that contains - 2 folders and 8 files. They are: album 1(containing all the image files in 3 separate folders), js (containing swffit.js and swfobject.js files), expressinstal.swf, loader.swf, pop.swf (I assume for the popups), slideshowpro.swf, images.xml, param.xml, pop.html and index.html

I’ve uploaded this folder and linked the iFrame (one per page) to the index.html file for each gallery.

I have nothing except the usual in the resources folder.

I’m perhaps being pernickety but feel that there can be a smoother integration of the swf gallery, it currently hiccups a bit before loading, I think its struggling to find the relevant files to initiate the flash gallery.

In the meantime I’m adding the word ‘Loading…’ with a show hide sequence timer action just to reassure people that things are happening. My answer to my off topic post.

I’ll study your reply more closely and see if the answer lies therein. So might get back to you.

thanks again,

seoras

ps/ the website is www.scottish-photography.co.uk


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The file(s) that needs to be imported into Freeway is the “loader.swf”. You then need to upload the “param.xml”, “slideshowpro.swf”, “images.xml” files to your server in the HTML portion of your site folder structure. The Upload Stuff action works great for this. (http://www.freewayactions.com/product.php?id=beta)

All the other stuff you don’t need, except obviously the “album1” folder which has your “lg” and “tn” folders and your images.

That should fix it. I wouldn’t do iframes as you can load multiple slideshows by adjusting the output settings in Lightroom (near the bottom).

If trouble persists, post again and I’ll watch the thread to help out.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Dan J,

Prior to uploading and trying this out as it won’t work locally (?) and not wishing to get to much in a twist. I was wondering -

  1. Do I change the name of the index.xml to that of the specific gallery ? I have 15 galleries to deal with.
  2. How do I link the specific page to the index.xml/slideshow and or other files ?

‘I wouldn’t do iframes as you can load multiple slideshows by adjusting the output settings in Lightroom (near the bottom).’
Not sure I understand what you mean by this. I see I can change the name of the .xml and or the upload settings. Also SsP recommend not to use iFrame but their solution is not clear.

Looked at the code in the .xml files and that has helped clarify which are specific to each gallery and which are generic.
I’ve been uploading everything with Cyberduck.

regards,

seoras


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You should be able to output your files from Lightroom into separate folders (by simply making new ones everytime you export.) In each of those folders you have all those files, but remember the key ones I pointed out that you’ll need.

If you want to keep Freeway in charge of handling it here would be two solutions I came up with:

Solutions off the the top of my head would be to alter the name of the outputted XML file to something other than “images” for each one and then you can change the album name to something other than album1. Then in your xml file:

<album id="15" title="" description="" lgPath="" tnPath="" tn="">
	<img src="image1.jpg" caption="" />
	<img src="image2.jpg" caption="" />
</album>

You’d have to change the “lgpath” and the “tnPath” to the folder architecture you setup. So it could be like:

<album id="15" title="" description="" lgPath="/gummiebears/lg/" tnPath="/gummiebears/tn/" tn="">
	<img src="image1.jpg" caption="" />
	<img src="image2.jpg" caption="" />
</album>

With “gummiebears” being your gallery folder name with the required “lg” and “tn” paths intact. If that doesn’t work try using absolute address’s which would go from the “http://www.example.com/gummiebears/lg/” or tn path for those.

Another solution would be to just make folders in your Freeway document and create separate pages in there (importing the loader.swf for each project gallery) and then using the “Upload Stuff” action to up the required files for each (in the drop down’s for HTML) and then manually upload the specific album’s to those created directories. Now before you ask if there’s a “Upload Folder” action, I’d love to see one, but I haven’t as of yet.

Hopefully that helps.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dan,

Thanks for your time on this especially being the weekend and all. No rest for the wicked they say.

Still confused I’m afraid, though the fog is clearing. Your second suggestion seems to be the closest to what I currently have. I already have a page per gallery.
I think what I’m aiming at is for the page to go directly to the named slideshow rather than have an iframe (div) go to another html page which in turn then opens the slideshow.
With a bit of Sunday surfing I found this blog (http://blogs.oreilly.com/lightroom/2008/01/revisiting-slideshowpro-for-li.html) that’s also helping to clarify the situation but he still manages to confuse matters (me) by stating that you need to create a ‘js’ folder when in fact one already exists. Ho Um.

I shall also have to find out where/how the slideshow gets positioned within the page.

Shall investigate myself but what is it with ‘Upload Stuff’, how does it differ from an ftp client.

regards,

seoras


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Well, wicked…I don’t know about that. Perhaps, no rest for the weary and somewhat tired people.

Over dinner tonight, it hit me. It sounds like what you’re trying to do would be to integrate perma-links into your SSP that would allow you to click an HTML link and load a specific gallery. I’ve posted a tutorial, a while back, about how this can be done easily using the Flash component version of SlideShowPro.

Here’s where that is: http://freewaytalk.net/thread/view/34764

In your Lightroom version however you cannot add any “Actionscript” to the outputted file. You’d need to actually have the component part. But near the bottom under “Options” you’ll see the ability to turn on “Permalinks.” This is what you’d want to do and would allow you to load galleries from HTML links but according to the user guide you’d be able to load up only specific images, not call entire galleries.

Also, in that blog, the JS folder is what “anyone else” would use to have various browsers understand the SWF file. Since Freeway automates this with it’s own file for Flash enabled/detected files already you wouldn’t even need it.

If you have the component, which part of me thinks you have already because I think you need that to use it in Lightroom…that’s what you’d have to do to make that work.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks again Dan,

Think I’m going to knock this one on the head. After all the iFrame method does work, though not the most ideal or elegant method and occasionally people will get a flash of an error message within the frame area. I’ve alleviated the general delay somewhat by placing html text (loading…) over the iFrame so it appears and informs something is happening, once the slideshow kicks in it covers the text. Tried 'show/hide/fade action but this was rather iffy with certain browsers.

The only other and final solution I thought of was that the lightroom/Ssp outputs an index.html file (the file that the iFrame links to) that surely has the information we need to get the slideshow going. Can the code from this file be pasted into the Freeway generated file ?

regards,

seoras


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The code from the index.html file is going to look similar to a Freeway published index.html file. In that file it contains the links to the ‘js’ folder for the SWFObject javascript file near the header.

You could see this as an example folder structure of how your published files would look if you did them in Freeway. You have the album1 folder for your images and then the param.xml, images.xml, and slideshowpro.swf object all in the root directory. The only difference is that the loader.swf file is put into your Resources folder and not left in the root directory.

With the outputted file you don’t get to choose options or add to it and nor are you able to import it successfully into Freeway for editing because it gets messed up because of clashing javascript.

Hope that helps.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options