[Solved] Flash as billboard

Author Message

Catherine Mollet @work

Thursday 27 August 2009 9:30:37 am

Hi,
I'm trying to put a swf file in the top page billboard, but it doesn't show on the frontend. Looking at the code, the file seems embedded right,

<div class="attribute-billboard">
        <script type="text/javascript">
insertMedia( '<object type="application/x-shockwave-flash" data="/.../index.swf" width="798" height="280">', '<param name="movie" value="/.../index.swf" />', '<param name="loop" value="true" />', '<param name="play" value="true" />', '<param name="quality" value="high" />', '<p>No <a href="http://www.macromedia.com/go/getflashplayer">Flash player<\/a> avaliable!<\/p>', '<\/object>' );
</script>
    <noscript>
    <object type="application/x-shockwave-flash" data="/.../index.swf" width="798" height="280">
        <param name="movie" value="/.../index.swf" />
        <param name="loop" value="true" />
        <param name="play" value="true" />
        <param name="quality" value="high" />
        <p>Aucun <a href="http://www.macromedia.com/go/getflashplayer">FlashPlayer</a> disponible !</p>
    </object>
    </noscript>
        </div>

but nothing appears on the page. If I insert swf file in the center column position, for exemple, everything is OK. I tried to put the file in Media > Multimedia and in Media > Banners, nothing changes.
Any idea ?

André R.

Thursday 27 August 2009 9:51:57 am

What version are you on? there was some issue with flash 10 some time ago, so if you can't see the flash anywhere, and your on a old (pre 4.0.2) version, then update.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Catherine Mollet @work

Monday 31 August 2009 3:04:00 am

Hi André,
I'm using version 4.1.3.
I can see the flash when I'm embedding it in an article, but I can't see it when it's embedded as a billboard.
One thing I can't explain is that the code of the flash in billboard appears when I'm looking for page source but not in the page itself. I tried with several browsers to prevent a "adblock like" problem. Same every time.

André R.

Monday 31 August 2009 3:25:11 am

Try replacing the content of billboard/flash.tpl with the content from embed/flash.tpl
(Backup the file you change first)

Base folder: <eZ Publish root>/extension/ezwebin/design/ezwebin/override/templates/

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Catherine Mollet @work

Monday 31 August 2009 4:40:33 am

Thank you for the suggestion, but ... it doesn't works. Still can't see the Flash as the code is there.

André R.

Monday 31 August 2009 4:45:59 am

Then I don't know, anyone else?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jeremy B.

Monday 31 August 2009 5:00:51 am

Hi Catherine,

If I were you I would :

- Check the anonymous policy for content / read
- Check if I could display the "/.../index.swf" url in the browser
- Try to force the "value" and the "movie" params of the embeded object with an absolute url like "http://localhost/ezp/index.swf"
- Check if the flash is really working. Does it have access to necessary data to run (if any) ? You can check that with a soft like firebug
- Try to use swfobject to embed the flash (who knows...)

Hope this helps

Catherine Mollet @work

Monday 31 August 2009 5:18:05 am

Hi André and Jeremy,
Thanks a lot for your answers. Sorry for the inconvenience, but André's solution was the good one. In all my attempts, I uploaded another time the banner and then, width and height loosed their values and became automatically set to 0. I didn't noticed that.
But with the original code of billboard/flash.tpl, no way. I had to replace it with the content of embed/flash.tpl. If not, even with good width and height values, it doesn't show.
Thanks again.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:36:45
Script start
Timing: Jan 30 2025 19:36:45
Module start 'layout'
Timing: Jan 30 2025 19:36:45
Module start 'content'
Timing: Jan 30 2025 19:36:46
Module end 'content'
Timing: Jan 30 2025 19:36:46
Script end

Main resources:

Total runtime1.2193 sec
Peak memory usage8,192.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0103 588.1328151.2109
Module start 'layout' 0.01030.0043 739.3438220.6875
Module start 'content' 0.01471.2034 960.03134,538.8203
Module end 'content' 1.21800.0012 5,498.851619.8516
Script end 1.2193  5,518.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2865160.0002
Check MTime0.00130.1063160.0001
Mysql Total
Database connection0.00060.051410.0006
Mysqli_queries1.117291.6295740.0151
Looping result0.00070.0566720.0000
Template Total1.156994.920.5785
Template load0.00190.157020.0010
Template processing1.155094.724320.5775
Template load and register function0.00150.125610.0015
states
state_id_array0.00210.172710.0021
state_identifier_array0.00260.215820.0013
Override
Cache load0.00160.1339400.0000
Sytem overhead
Fetch class attribute can translate value0.00170.141230.0006
Fetch class attribute name0.00170.141990.0002
XML
Image XML parsing0.00070.060030.0002
class_abstraction
Instantiating content class attribute0.00000.0017110.0000
General
dbfile0.00120.0977170.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs