Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorswedev
    • CommentTimeJan 30th 2008
     
    Hello,

    I'm stuck with this implementation problem and with the popularity of Lightroom, I'm hoping someone has already done it or have a clue of what i should do next.

    here's the story:
    - adobe lightroom generates a flash gallery that contains "/resources/AC_RunActiveContent.js" script, "/resources/gallery.swf" file and "/resources/playerProductInstall.swf" -- among other things
    - i'd like to access those objects and embed them in my drupal-based website
    - i installed and enabled swfobject module in my drupal-based website

    so, I tried using the example given after updating the file paths accordingly, but it's still not working.
    It just gave me a blank page.

    Am I missing something here? is lightroom-generated js+swf not quite compatible with this module?

    thank you very much!
    -will
    • CommentAuthorAran
    • CommentTimeJan 30th 2008
     
    Easiest thing to do is post the page so we can see what is actually happening.

    Aran
    • CommentAuthorswedev
    • CommentTimeJan 30th 2008 edited
     
    try this one:
    www.whpix.com/testpage

    thanks a lot.
    -will
    • CommentAuthorphilip
    • CommentTimeJan 30th 2008
     
    your HTML file is missing the reference to the SWFObject external JS file.

    add the script to the <head> of your page

    <script type="text/javascript" src="swfobject.js"></script>

    be sure to upload the script, too...

    - philip
    • CommentAuthorswedev
    • CommentTimeJan 30th 2008 edited
     
    OK, I just did it (I put the swfobject.js inside the drupal's "modules/swftools/shared/swfobject" directory) -- so my html in the drupal content is as follows:

    <script type="text/javascript" src="swfobject.js" ></script>

    <div id="flashcontent">
    This text is replaced by the Flash movie.
    </div>

    <script type="text/javascript">
    var so = new SWFObject("/files/mpage/resources/gallery.swf", "mymovie", "730", "480", "8", "#336699");
    so.write("flashcontent");
    </script>

    btw, lightroom gives me this stuff (for flash image slideshow) that I uploaded into my Drupal's "/files" directory:
    >bin
    >images
    [all the jpg files]

    >resources
    >javascript
    AC_RunActiveContent.js
    >localization
    localText.xml
    >mediagroupdata
    group.xml
    >styles
    style.xml
    gallery.swf
    playerProductInstall.swf

    index.html

    Also, in Drupal's setting for SWFTools, the method is set to SWFObject for All Pages.

    thanks a lot
    -will
    • CommentAuthorphilip
    • CommentTimeJan 31st 2008 edited
     
    is it working for you? (i don't use drupal, so i don't know how their 'modules' system is set up)

    if not, make sure your filepath is set correctly... if swfobject.js is inside another folder ("modules/swftools/shared/swfobject"), your filepath would normally become:

    <script type="text/javascript" src="/modules/swftools/shared/swfobject/swfobject.js" ></script>

    (this assuming "modules" is at the root level of your site)

    - philip
    • CommentAuthorAran
    • CommentTimeJan 31st 2008
     
    @will

    The page seems to show the slideshow correctly for me now.

    You are still 404'ing (not found) on a few files on the test page though:

    http://www.whpix.com/main/themes/niftyCorners/niftyCorners.css
    http://www.whpix.com/flashvars.xml

    I am unsure if these are required etc.

    Aran
    • CommentAuthorAran
    • CommentTimeJan 31st 2008
     
    Oh.

    I just noticed that you have some bad markup in your page which should be fixed. You have extra <head> and <body> tags and the swfobject.js is not properly in the <head> area:

    After you define all your proper <head> info and are starting to define your body content, you get to this block:

    <h1 class="title">wip</h1>
    <div class="tabs"></div>

    <div class="node">
    <div class="nodecontent"><span class="taxonomy"></span>
    <div class="submitted"></div>
    <div class="content"><p><head></p>
    <script type="text/javascript" src="swfobject.js" ></script><p></head></p>
    <p><body> </p>

    See how you open another <head> and <body> tag and have the swfobejct javascript definition in the "fake" head tag? This needs to be fixed.

    Aran