see live demo!

Not signed in (Sign In)

Categories

 

buy Monoslideshow

via PayPal / credit card

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

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorscs
    • CommentTimeMay 28th 2009
     permalink

    Hi all!
    I have a path problem with mms in a CodeIgniter (Php Framework) application.

    in a code igniter site we have:
    /index.php
    /system/application/controller/home.php
    /system/application/model/home_model.php
    /system/application/view/home.php
    /system/application/controller/about.php
    /system/application/model/about_model.php
    /system/application/view/about.php

    and so on for each application.

    Can I do that?
    /xml/monoslideshow.xml
    /swf/monoslideshow.swf
    /Mss/home/images/01.jpg
    /Mss/home/images/02.jpg
    /Mss/home/images/03.jpg

    Or it's imperative to use a structure like in the example

    /index.php
    /mss/mss.xml
    /mss/mss.swf
    /mss/images/01.jpg
    etc... ?

    Many thanks to all and sorry for my ridiculous english :(
    (I'll study it)

    Alex

  1.  permalink

    Do what you want, there are simple rules:
    - if you change the name of the xml, use the "dataFile" parameter
    - if you change the path to the xml, use either the "dataFile" or the "base" parameter
    - if you change the names/paths of the imagers/thumbnail locations, change those within the xml

    I would recommend using the "base" parameter to describe the path from where the calling .php file is to the xml.

    You can look at <a href="http://www.horse-competence.de/galerie/minischweine_10.html">my website</a> for an example where I did not use any of the standard paths (it is static html, but that doesn't change anything).

    Christoph

    • CommentAuthorscs
    • CommentTimeMay 30th 2009
     permalink

    Hi christophvl,
    thanks for you reply. I'll try it.

    Alex

    • CommentAuthorscs
    • CommentTimeJun 3rd 2009
     permalink

    I'm sad, mss won't work...

    I've updated swfObject to the newest version (2.1) and modified my structure :

    /index.php

    /js/swfobject.js

    /system/application/views/galleria.php (php calling file)

    /mss/galleria.xml
    /mss/monoslideshow.swf
    /mss/album/galleria/album01/image01.jpg
    /mss/album/galleria/album02/image01.jpg

    and the embedded code :
    <script src="http://localhost/js/swfobject.js" ></script>
    <script type="text/javascript">
    swfobject.registerObject("mss_gallery", "9.0.0");
    </script>
    in the head section.
    in the body section:
    <div id="mss_gallery">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="400" id="mss_gallery">
    <param name="movie" value="../mss/monoslideshow.swf" />
    <param name="dataFile" value="../mss/galleria.xml" />
    <param name="flashvars" value="showLogo=false" />
    <param name="bgcolor" value="#ffffff" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="../mss/monoslideshow.swf" width="500" height="400" id="mss_gallery">
    <param name="dataFile" value="../mss/galleria.xml" />
    <param name="flashvars" value="showLogo=false" />
    <param name="bgcolor" value="#ffffff" />
    <!--<![endif]-->
    <p> Please turn on Javascript (and)or install
    <a href="http://www.adobe.com/go/getflashplayer">
    <img style="vertical-align:middle;" src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
    </p>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>

    the path is ../mss/galleria.xml because another php file calls via ajax a text file with a ../txt/textfile1.txt with this dir structure

    /index.php
    /system/application/views/another.php (php calling file)
    /txt/textfile1.txt

    and it work fine!
    I've tried ../../ or ../../../ but without chance. Also with absolute path.

    Where is my mistake?

    Many thanks!

    Alex

  2.  permalink

    Sorry, I don't really comprehend your directory structure (but that can be me).
    Assuming the slideshow fires up, but shows an error message like "Can't load xxx" where xxx is the name of the xml, do the following:
    1) Check if mss is looking for galleria.xml and no longer for monoslideshow.xml. If so, it at least reads the dataFile parameter, although it obviously doesn't find the xml.
    2) Put galleria.xml everywhere and see if it works. Remember: The path is relative to what mss perceives as the calling html. If it works, delete the xmls one by one to find the one in use, then you know the path to that xml (which you defined in dataFile) and you can change it to where you want Monoslideshow to look.
    3) If another error occurs, please upload your files to a test site and post the link.
    Christoph

    • CommentAuthorscs
    • CommentTimeJun 5th 2009
     permalink

    Many thanks for your reply, Christoph!
    I tried the Dynamic publishing and mss works, finally!

    The CodeIgniter structure is :

    /(root folder)
    /system/application/view/file.php
    where file.php in view folder makes the output page with data sended by controller.

    The mss's files are in:
    /(root folder)
    /mss/galleria.xml
    /mss/monoslideshow.swf
    /mss/images/galleria/pic01.jpg

    With SwfObject 2.1 and static publising, the relative link from php file to galleria.xml <code>../mss/galleria.xml</code> won't work.
    With Dynamic publishing it work fine!

    And I don't know why... Maybe, it can be a X-File :)

    Alex

    P.s. A long time ago I've found a nice js function to reload flash at every browser window's resizing (but I don't remember where...)
    In the head section something like :
    <code>
    <script type="text/javascript">
    window.onresize = function(){
    reloadFlash();
    };
    </script>
    </code>
    and in body something like :
    <code>
    <script type="text/javascript">
    function reloadFlash()
    {
    document.getElementById('MyFlash').innerHTML = '<OBJECT classid="clsid:xxxxxxxxxxxxxx" WIDTH="100%" HEIGHT="100%" ><EMBED src="myvideo.swf" WIDTH="100%" HEIGHT="100%"></EMBED></OBJECT>';
    }
    reloadFlash();
    </script>
    </code>

    I'm not a js coder but it can be useful for a liquid layout? with a dynamic publishing?

    •  
      CommentAuthorchristophvl
    • CommentTimeJun 5th 2009 edited
     permalink

    That has been discussed here recently (look <a href="http://www.monoslideshow.com/vanilla/discussion/1734/scalable-gallery-stage-fit-the-size-by-changing-browser-window-height/#Item_9">here</a>) and you can even look at a working example.
    Christoph

monokai logo © 2009 Monokai, all rights reserved. Buy Monoslideshow.