We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7838
    • 8 Posts
    Does anybody have any experice in using a .swf flash banner in the modx cms system? I have a template built and have had a banner built to fit in the same dimensions as the banner space built into the template but it won’t upload due to file type apparently.

    Any ideas greatfully recieved...

      • 4310
      • 2,310 Posts
      Try Tools => Configuration => File Manager => Uploadable File Types: and add .swf to the list.
        • 7838
        • 8 Posts
        Thanks for this help, but it didn’t work. Really appreciate you help though wink

        I managed to work it out by adding some code into the template of the page where the flash was required to be inserted, which got around needing to upload thought he CMS system. So you need to first of all upload the file via FTP of course...

        Works a treat!!!

        Let me know if anybody needs the code added...
          • 19298
          • 76 Posts
          MichaelHarringtonDesigns Reply #4, 16 years, 9 months ago
          Hi I have placed a flash banner on my site http://www.flashbanners.org.uk/

          with this code (I have placed this code in the html header chunk, not in the CSS file)

          <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="209" width="900" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
          <param name="_cx" value="15346" /><param name="_cy" value="4498" />
          <param name="FlashVars" value="" />
          <param name="Movie" value="blar blar blar /MichaelHarringtonDesigns/images/img05.swf" />
          <param name="Src" value="blar blar blar /MichaelHarringtonDesigns/images/img05.swf" />
          <param name="WMode" value="Transparent" />
          <param name="Play" value="-1" />
          <param name="Loop" value="-1" />
          <param name="Quality" value="High" />
          <param name="SAlign" value="" />
          <param name="Menu" value="-1" />
          <param name="Base" value="" />
          <param name="AllowScriptAccess" value="always" />
          <param name="Scale" value="ShowAll" />
          <param name="DeviceFont" value="0" />
          <param name="EmbedMovie" value="0" />
          <param name="BGColor" value="" />
          <param name="SWRemote" value="" />
          <param name="MovieData" value="" />
          <param name="SeamlessTabbing" value="1" />
          <param name="Profile" value="0" />
          <param name="ProfileAddress" value="" />
          <param name="ProfilePort" value="0" />
          <param name="AllowNetworking" value="all" />
          <param name="AllowFullScreen" value="false" />
          <embed wmode="transparent" src="blar blar blar /MichaelHarringtonDesigns/images/img05.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="209"></object>

          It works great but as you can see the swf file needs to be perfectly placed over the background image behind. I first used the
          tag to nug the swf file down, needed 6 of them it works but using IE the swf file in the wrong place.

          in my css file the code is

          #headerbg {
          clear: both;
          margin: 0 auto;
          width: 900px;
          height: 209px;
          background: url(blar blar blar /MichaelHarringtonDesigns/images/img05.swf) no-repeat left top;
          margin: 0 auto;
          margin-top: 20px;
          }

          As you can see margin-top: 20px thats what’s giving me the problem. Does anyone know of a way to incorporate margin-top: 20px into the flash code above, or how i can place the swf file exactly where I want it on the page??
            • 19298
            • 76 Posts
            MichaelHarringtonDesigns Reply #5, 16 years, 9 months ago
            Ok i figured it out all i had to do was add

            <object id="blar blar blar MichaelHarringtonDesigns/images/img05.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="900" height="209" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" align="middle" style="margin-top: 20px;" mce_style="margin-top: 20px;">