SWF banner
  • Hi

    Is there a way to embed a swf (flash) file in banner template, coz it seems I can't find the way to do it?

    Thanks for help.

    br/grega
  • 19 Comments sorted by
  • maybe this could help

    http://www.w3schools.com/flash/flash_inhtml.asp


    On Jan 4, 2011, at 2:44 PM, GregaZ wrote:

    >
    > Hi
    >
    > Is there a way to embed a swf (flash) file in banner template, coz
    > it seems I can't find the way to do it?
    >
    > Thanks for help.
    >
    > br/grega
    >


  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hi,

    I recommend to use good opensource solution OpenX as ad banner management. It supports all banner types.

    http://www.openx.org/publisher/open-source-ad-server
  • @ Zoran - Thanks, but I hope I know how to embed swf into html, I've done it many times, hehehe... But here through Campsite it is just not working as it should. I even tried several different versions of flash but no luck. It is strange that I can't view this online swf even if I put the link to the file directly in my browser. And I test it on my other websites and it works there, so it is not the flash issue.
    I really need this to be working, coz I will use flash also as a main header image.
    @Andrey - Thanks, I will consider this as an banner management solution, but still I need flash to be working, because of my main header image.
  • Hi Grega,
    that is how it works for me. I also use Open X and that works, too.
    What is a direct link to .swf file?


    On Jan 5, 2011, at 11:22 AM, GregaZ wrote:

    >
    > @ Zoran - Thanks, but I hope I know how to embed swf into html, I've
    > done it many times, hehehe... But here through Campsite it is just
    > not working as it should. I even tried several different versions of
    > flash but no luck. It is strange that I can't view this online swf
    > even if I put the link to the file directly in my browser. And I
    > test it on my other websites and it works there, so it is not the
    > flash issue.
    > I really need this to be working, coz I will use flash also as a
    > main header image.
    > @Andrey - Thanks, I will consider this as an banner management
    > solution, but still I need flash to be working, because of my main
    > header image.
    >


  • Huh, if it works for you than it has to be something with my campsite settings or even my server settings.
    You can check two different links, first points to flash directory (with index.html and pan_rip_300x250.swf) on our old server and it works fine, and second points to same flash folder our new server (running campsite).
    Damn, this thing started to drive me crazy! What I'm doing wrong???
  • what is URL of your campsite publication and swf file

    On Jan 5, 2011, at 1:05 PM, GregaZ wrote:

    >
    > Huh, if it works for you than it has to be something with my
    > campsite settings or even my server settings.
    > You can check two different links, first points to flash directory
    > (with index.html and pan_rip_300x250.swf) on our old server and it
    > works fine, and second points to same flash folder our new server
    > (running campsite).
    > Damn, this thing started to drive me crazy! What I'm doing wrong???
    >


  • http://www.itipo.net
    You can see white spot in the right column, there should be same banner as it is on the links from my previous post.
  • For what it's worth, the SWF file ( http://www.itipo.net/templates/itipo/img/banner/pan_rip_300x 250.swf) doesn't load even when I try to open it in a separate tab.

    - Is Apache correctly configured to serve SWF? This seems unlikely, because if the MIME type were wrong it would serve a bunch of text instead, right? Anyway, if this is the case, try this page: http://www.flashcentral.com/Tech/Server/Apache.htm
    - Is the path to the SWF file correct?
    - Maybe you could try inserting a different SWF file there to see if that changes anything?

    Finally, maybe you could upload the template so that we could see what that looks like?

    Douglas Arellanes
    Director of Innovation
    Sourcefabric, o.p.s.

    Find a way or make one.
  • OK, I'm one step closer! It is working if I change the movie src in banner template from local server to my old server. So it has to be something with folder or path. Can I use absolute path for local files, coz as fare as I tried, it's not working with "http://{{ $campsite->publication->site }}/templates/..."?
    Any other suggestion how should I "call" my swf file in banner template?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    "http://{{ $campsite->publication->site }}/templates.. is right way. You need to make sure that swf file is accessible. I guess the problem with .htaccess settings. Add line RewriteCond %{REQUEST_URI} !\.swf$ before RewriteCond %{REQUEST_URI} !\.php$
  • Well Andrey, when I saw your post I was 1000% sure that this would solve my problems, but unfortunately I still can't load swf files.
    In fact there is a small effect of the line I added in .htaccess. Before that I was able to see flash banner (only in Firefox!) if I changed the src in the campsite banner template to a same file loaded on my other (old) web server, but now that is gone too.
    Is there something else that I have to put in my .htaccess file? BTW - my old webserver is running Debian and my new server is running CentOS if that might help something.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    What exactly does return web server? The error or campsite page?

  • Well - the rest of the page is fine. Browser is endlessly loading the banner and if you right click on the banner spot you get "Movie not loaded...". That's it. I really don't know what else should I try?
  • ...and I triple checked if Apache is correctly configured to serve SWF.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Please directly try to load swf file from browser
  • Browser is loading and loading and loading and....
    Check direct link to the swf or see a web page using this swf in header.
  • Hm. This is really strange. Just to satisfy a question of mine - does this happen for other SWF files too? (I'm just wondering if the SWF file itself might be corrupted).

    Douglas Arellanes
    Director of Innovation
    Sourcefabric, o.p.s.

    Find a way or make one.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Looks like this problem with your file or apache. Try wrong path with swf extension (e.g. http://www.itipo.si/templates/itipo-slo/img/header/map_.swf ) You can see the apache 404 error. It means that swf file isn't handled by campsite and .htaccess set up properly.
  • @ Douglas Arellanes - Yes I can's see any of my swf files.
    @ Andrey Podshivalov - OK, than I have a problem with Apache, coz same files works just fine on my other server setup. Dark mystery of Apache, here I come!