Forums / Setup & design / [Solved] Flash as billboard

[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.

eZ debug

Timing: Jan 18 2025 02:10:30
Script start
Timing: Jan 18 2025 02:10:30
Module start 'content'
Timing: Jan 18 2025 02:10:30
Module end 'content'
Timing: Jan 18 2025 02:10:30
Script end

Main resources:

Total runtime0.1816 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.7109180.8359
Module start 'content' 0.00640.0062 768.5469101.9922
Module end 'content' 0.01260.1690 870.5391531.7734
Script end 0.1815  1,402.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00402.2282200.0002
Check MTime0.00160.8600200.0001
Mysql Total
Database connection0.00060.302810.0006
Mysqli_queries0.129971.53991410.0009
Looping result0.00110.62321390.0000
Template Total0.168392.710.1683
Template load0.00140.743710.0014
Template processing0.167091.919910.1670
Override
Cache load0.00100.546710.0010
Sytem overhead
Fetch class attribute can translate value0.00080.455410.0008
XML
Image XML parsing0.00030.140510.0003
General
dbfile0.00844.6106200.0004
String conversion0.00000.003430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs