Fork me on GitHub

Flash Slideshow in Andreas08 Theme Header - LOAD FAIL  Bottom

  • Hi All

    Zikula 1.3.1
    Theme: Andreas08

    I'm struggling to get a slideshow going in header.tpl. It just says "LOAD FAIL". But I can't figure out why.

    The reference to slideshow.swf (path) is correct, because when I paste it into the browser, it works. Although when I view the source code (Firefox, right click > view souce), this part of the code is red. Why red? Something wrong with the code?

    I added this code:

    Code

    <embed src=http://www.xyz/images/header/slidehow.swf allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="723" height="306" </embed>


    I also can't get this code going in a normal HTML Block. Is Zikula blocking this? Any security settings I need to adjust?

    Any help is appreciated!

    --
    nitz
  • I have two idea.
    • You have not put quotes around the src attribute. It should be src="http://www.xyz/images/header/slidehow.swf".
    • You do have to give permission for the embed tag to get through zikula. Go to the admin panel, choose the security tab. Then click on the security center. Next, click on the Allowed HTML settings. Scroll down to the embed tag and click the radio button so that it is allowed with attributes. Scoll to the bottom of the page and click Save. It should work now.
  • Embed is tricky. you also have to disable the filter, because it can't be over-ridden. And that is irrelevant to it not working in the theme itself, because the templates aren't parsed through the filters.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Use SWFObject Then you don't need to use embed or object.

    eg:


    Code

    <!--[pnpageaddvar name="javascript" value="themes/Andreas08/scripts/swfobject.js"]-->


    Code

    swfobject.embedSWF("slidehow.swf", "myContent", "723", "306", "9.0.0");


    Don't forget to wrap above code in script javascript tags.

    Code

    </head>
      <body>
        <div id="myContent"></div>


    The div tag is a id, so you still can put your style in as class.



    Edited by mazdev on Feb 04, 2012 - 07:43 PM.

    --
    Carl Georg aka Mazdev

    Jerindo.net - Ruminations of an Expat in Indonesia & Webdevelopment

  • Hi All
    @ Paustian: thanks - checked that before. No luck! @ HalbrookTech: thanks as well!
    @ mazdev: Interesting ... but I don't manage.
    I downloaded swfobject_2_2.zip
    Followed the 3 steps on SWFObject site. Still get "load fail".

    Strange to me: when I repalce the test.swf reference in index.html (from swfobject_2_2.zip) with my slidehow.swf I also get "load fail". Only the test.swf works!

    My swf only runs when I embed it.

    icon_confused
    --
    nitz
  • Which 3 steps did you used? The first 3 or the steps from the "Tips" section. If you used the 3 first, it can't work as you use the "object" tag.

    Here this code should work:

    1. copy the swfobject.js the to themes/Andreas08/scripts/ folder

    In the head part of your home.htm or master.htm put :

    Code

    <head>
    <!--[pnpageaddvar name="javascript" value="themes/Andreas08/scripts/swfobject.js"]-->
       
    script type="text/javascript"
    swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");  
    /script>
    </head>

    please add a < in the above code in front and > at the end of script type="text/javascript" and < in front of /script>


    In the place of your header where you want to put the flash you only need to put this div tag:

    Code

    <div id="myContent"></div>


    You can add a class to your style.css for this div, for positioning or anything else. For some Javascripts, Flash etc. they require sometimes position:relativ; to work.

    The div would look than so:

    Code

    <div id="myContent" class="your class"></div>




    Edited by mazdev on Feb 07, 2012 - 01:02 AM.

    --
    Carl Georg aka Mazdev

    Jerindo.net - Ruminations of an Expat in Indonesia & Webdevelopment

  • Do you know which flash player your .swf uses.

    Check out this article for SWFObject http://www.adobe.com…cles/swfobject.html

    --
    Carl Georg aka Mazdev

    Jerindo.net - Ruminations of an Expat in Indonesia & Webdevelopment

  • Yes, the first 3 steps from the tip section -> object, you are right!

    As indecated in my first post, I'm using (testing) Zikula 1.3.1.
    Theme Andreas08 has no home.htm or master.htm any more. Only template files. I guess I then use home.tpl or master.tpl!?

    I also tried to get it going on a Zikula 1.2.7 installation using SeaBreeze theme, as it still uses home.htm and master.htm. According to your post. No success.


    I have Flash Player 10,3,183,5 installed and created the .swf with Flash Slideshow Maker Professional. You can see the SWF here: http://www.ramblers.com.na/bundesliga

    Still have to follow the Adobe link you posted.

    Thank you so far!
  • You got now 2 choices.

    1. You go with embded

    2. You use the SWFOject

    As you mentioned the test.swf works. That's because it is installed.

    icon_confused icon_confused icon_confused

    In your src folder of the package is a expressInstall flash action script. You have to install your flash. How to?

    Simple, follow the Adobe Link, it's a step by step tutorial (very easy). Here is the link again: http://www.adobe.com…cles/swfobject.html

    Good Luck, Viel Glück.

    PS Ich gehe davon aus das Du Deutsch bist, auch wenn Deine Seite in Englisch ist.

    --
    Carl Georg aka Mazdev

    Jerindo.net - Ruminations of an Expat in Indonesia & Webdevelopment

  • Yes, German ... icon_wink

    I followed the link and again downloaded swfobject.zip and the generator. Now this is what happens:

    When I use the generator (same code as before) and run everything on my desktop using a folder "slideshow" it works fine.

    New finding: When I copy this folder "slideshow" anywhere onto my server (samba) and launch is over the network, I get: LOAD FAIL

    At first I thought it fails only from within a Zikula subfolder. But no, anywhere on the network. Even another second samba server fails. So it is the network launch!?

    Don't have a clue - giving up ... for now!

    Thanks!
  • Samba and swf is a pain in the a..

    Quote

    try to turn turn off ‘compress movie’ in the publish settings
    there’s no problem at all. So, as long as your testing you can leave it off,
    and when your flash is finished copy it to your local machine, export it, and copy it back to the samba share.


    Alternativly you could install Ubuntu Mozilla Plugins "gnash" or "swfdec" (google for it) or take a look at this one.

    http://ubuntuguide.o…for_Firefox_Plug-in


    Can't use an other server. I'm using on my development server Wamp, and I don't have any problems with flash.

    --
    Carl Georg aka Mazdev

    Jerindo.net - Ruminations of an Expat in Indonesia & Webdevelopment

  • Hey mazdev!

    Got it going! Thanks for you assistance icon_lol

    Using embeded, recreated slideshow, samba no problem any more.

    What a struggle!
  • Quote

    What a struggle!


    That's why I'm still with Zikula, the struggle and the satisfaction later when you get it going.

    Also the struggle satisfy my coffee and cigarettes addiction. Programing, coffee and tobacco, challenge, sleepless nights and satisfaction that's what it is all about for me.

    --
    Carl Georg aka Mazdev

    Jerindo.net - Ruminations of an Expat in Indonesia & Webdevelopment

This list is based on users active over the last 60 minutes.