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.
    • CommentAuthorpmuldoon
    • CommentTimeSep 9th 2010 edited
     permalink

    Hi

    I have Monoslideshow installed in WordPress and I would like to show a slideshow on each page of the site. I have 2 slideshows coming up fine on the home page, but the second slideshow I would like to come up on each page, but it only comes up on the Home page.

    Both xml files and the monoslideshow.swf are in a folder off the root called 'monoslideshow' and I have absolute paths in my scripts to point to them - please see below (maybe the absolute paths are my problem?)

    Scripts are as follows:

    <script type="text/javascript">
    var flashvars = {showLogo: "false", showRegistration: "false", dataFile: "monoslideshow/monoslideshow.xml"};
    var params = {allowscriptaccess: "sameDomain", allowfullscreen: "true", allownetworking: "all"};
    var attributes = {id: "monoslideshow", name: "monoslideshow", bgcolor: "000000"};
    swfobject.embedSWF("monoslideshow/monoslideshow.swf", "flashContent", "630", "394", "10", false, flashvars, params, attributes);
    </script>

    <script type="text/javascript">
    var flashvars = {showLogo: "false", showRegistration: "false", dataFile: "monoslideshow/monoslideshow2.xml"};
    var params = {allowscriptaccess: "sameDomain", allowfullscreen: "true", allownetworking: "all"};
    var attributes = {id: "monoslideshow", name: "monoslideshow", bgcolor: "000000"};
    swfobject.embedSWF("monoslideshow/monoslideshow.swf", "flashContent2", "880", "70", "10", false, flashvars, params, attributes);
    </script>

    HTML is as follows - maybe a little complicated since I use a theme for WordPress called 'Thesis' where I can put all HTML & PHP in a cutom-functions.php file, but here it goes:

    First slideshow for Home page only (which is working fine):

    - this goes into a hook equivalent to adding to 'thesis_hook_before_content_area' in my Thesis theme custom_functions.php file (if that makes any sense to you - but it works fine on the Home page, and it doesn't go to any other page, which is good):

    <div id="fp-image"><div id="flashContent">
    <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p></div>
    <p><img src="http://www.sportfestwindsor.com/wp-content/uploads/slideshow-nav-sm.png" width=629 height=20 /></p></div>

    Second slideshow, which I would like on every page, works only on the Home page:

    - this goes into a hook equivalent to adding to thesis_hook_before_content_box in my Thesis Theme custom_functions.php file (it works fine on the Home page, it just won't go to any other page):

    <div align="center"><div id="flashContent2">
    <p>Please <a href="http://get.adobe.com/flashplayer/">install Flash®</a> and turn on Javascript.</p></div>

    I also removed the id=flashContent2 and changed the HTML to just text to see if it would go into all pages and it works, so I know it has something to do with Monoslideshow - maybe it can't find the xml files?

    Any ideas on how I can get this one to go to all pages? Many thanks.

    Patrick

  1.  permalink

    Hi,
    in theory it should work as you describe (btw, that are relative paths to my eye).
    Perhaps you can post a link to a live test page?
    Christoph

    • CommentAuthorpmuldoon
    • CommentTimeSep 9th 2010
     permalink

    Forgot - I actually did put in a function with a conditional statement for the first slideshow with a if ( is_front_page() ) to restrict it to only the front page, fyi.

    Here is my link (to a very unfinished site!):

    http://www.sportfestwindsor.com/

    Thanks!

    • CommentAuthorpmuldoon
    • CommentTimeSep 9th 2010
     permalink

    Any idea which file it may not be finding - swf or xml - or both?

  2.  permalink

    It does not find the swf, otherwise MSS would generate some kind of error message.
    Christoph

  3.  permalink

    ok, it took very long to load, but now it works. Do you happen to have very large photos?
    Christoph

    • CommentAuthorpmuldoon
    • CommentTimeSep 9th 2010
     permalink

    Actually, no - I use photoshop to bring each image down to between 50KB to 100KB. Any my browser (Firefox) loads each slideshow immediately on the home page. Not sure why yours was so slow? Then again, could mine be in a cache so that it comes up immediately when I refresh? If it is very slow to new users I would like to find an answer to that.

    However, importantly, the second slideshow (of sponsors) is still only showing on the Home page, and not all pages. Is there a change I have make somewhere so that it can find the swf file on any page it generates besides the home page? Thanks for your help.

    Patrick

    • CommentAuthorpmuldoon
    • CommentTimeSep 9th 2010
     permalink

    Okay - figured it out. I simply forgot to put the preceding slash before the monoslideshow folder name. When I make the following changes, it works great. Thanks for your help.

    Patrick

    dataFile: "monoslideshow/monoslideshow.xml = dataFile: "/monoslideshow/monoslideshow.xml
    dataFile: "monoslideshow/monoslideshow2.xml = dataFile: "/monoslideshow/monoslideshow2.xml
    monoslideshow/monoslideshow.swf = /monoslideshow/monoslideshow.swf

    • CommentAuthorsadie
    • CommentTimeDec 29th 2010
     permalink

    When you first try to run a JavaScript on your web page it is quite likely that it wont work the way that it is supposed to. You may get an error message that gives you a clue as to what happens or the script may just not appear to do anything.

    PW0-204

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