Forums / Developer / Flash within an article!

Flash within an article!

Author Message

Jorge estévez

Monday 12 July 2004 6:07:40 pm

How do I insert a flash animation into an article?

Ive inserted a new flash object inside a folder and using the <object id="xxx"> does not display it

Adding the flash into the media section does not display it either...

How can I do it? please!

I would like to inser it just as I insert images or else!

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Sandra Parente

Tuesday 13 July 2004 2:04:13 am

You must add the swf extension to RewriteRule string in your Apache VirtualHost configuration, like in this example:

RewriteRule !\.(gif|css|jpg|png|swf)$ /path/to/index.php

Remember to restart Apache for applying the changes.

Sandra Parente
www.netbliss.it

Jorge estévez

Tuesday 13 July 2004 11:51:02 pm

Thanks Sandra,

This is what I have done:

Added the rewriterule (offline)


<VirtualHost *:80>
    ServerAdmin webmaster@www.site3.com
    DocumentRoot "C:\web\site3"
    ServerName site3
    ErrorLog logs/site3-error_log
    CustomLog logs/site3-access_log common
    
RewriteRule !\.(gif|css|jpg|png|swf)$ c:\web\site3\index.php

</VirtualHost>

Inserted the flash in my database
In my article I call the flash : <object id="xxx">

But It cannot be seen, the code of the pages looks like this:


<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="75">
<param name="movie" value="/index.php/holahabana/content/download/468/3579/latinbanner.swf" />
<param name="quality" value="high" />
<param name="play" value="" />
<param name="loop" value="" />
<embed src="/index.php/holahabana/content/download/468/3579/latinbanner.swf"          quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width="150" height="75" play="" loop="" >
</embed>
</object>

I do not understand the following code:


src="/index.php/holahabana/content/download/468/3579/latinbanner.swf"

It just doesn't work at all, it only displays a white box (with width and height of the flash object), but cannot be seen at all, and as ussual the browser keeps on trying to load the flash...

help!

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Sandra Parente

Wednesday 14 July 2004 8:18:48 am

It is the template:
design/base/override/templates/embed/flash.tpl

If you see the code, there is "content/download/" ; it must be "content/view".

Try to change it and let me know if it works.

Sandra Parente
www.netbliss.it

John Mina

Monday 02 August 2004 12:55:50 am

Hi
I thought i have to write the ReWrite rules in the unix shell i have ?

Any comments please?

Clay Pereira

Monday 02 August 2004 8:10:36 am

Check to see if anonymous user has rights to view the media secton. I had the same problem.

Alexandre Cunha

Monday 27 September 2004 5:23:01 pm

Hi,

I have the same problem but i can see the flash only in the admin interface.
Have checked the permissions.
The sugestion to replace "content/download/" with "content/view/" is not valid.

I dont have a solution, but i found this:
in the flash.tpl, with

...
  value="index.php/admin/content/download/229/854/file.swf
...

i can see the flash file, but if i have

...
  value="index.php/my_design/content/download/229/854/file.swf
...

the flash file doest show.

Any sugestion ?

http://AlexandreCunha.com

Sandra Parente

Tuesday 28 September 2004 12:46:53 am

I've had this problem too with a new site created with 4.1 version with a lot of flash files to be displayed.
I must tell you that on this server they have Apache 2, so I think that this strange behaviour can be due to this.
First of all I noticed that in another site without the swf extension in the RewriteRule string of Apache VirtualHost configuration, flash files worked perfectly,
so I changed it again for my site and the flash files appeared magically.
Second, I tried to embed flash files created in the Media section within articles, but again I could not see them.
So I created the flash files in Content section, and then embedded them, and now they are perfectly visible.
Of course the problem is dynamic tree navigation, but I don't have any solution for that.

Hope I've been of some help...

Sandra Parente

Sandra Parente
www.netbliss.it

Alexandre Cunha

Tuesday 28 September 2004 3:46:28 am

Thanks for the tip Sandra !

Have moved the swf object from the media section to the content section and now the swf appears on all articles and folders in the front site.

This seams a bug in the ezpublish.

http://AlexandreCunha.com

Ronnie Garcia

Wednesday 09 August 2006 6:51:48 am

Double check your roles and permissions.
Anonymous users must have read access to the Media section <b>and</b> to the Flash content class you created.

HTH,
Ronnie.

eZ debug

Timing: Jan 18 2025 10:24:36
Script start
Timing: Jan 18 2025 10:24:36
Module start 'content'
Timing: Jan 18 2025 10:24:37
Module end 'content'
Timing: Jan 18 2025 10:24:37
Script end

Main resources:

Total runtime0.9272 sec
Peak memory usage4,096.0000 KB
Database Queries223

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.7031180.8438
Module start 'content' 0.00710.7840 768.5469767.7188
Module end 'content' 0.79110.1360 1,536.2656344.4375
Script end 0.9271  1,880.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4318210.0002
Check MTime0.00150.1581210.0001
Mysql Total
Database connection0.00090.097410.0009
Mysqli_queries0.828589.34782230.0037
Looping result0.00250.26842210.0000
Template Total0.891696.220.4458
Template load0.00200.211620.0010
Template processing0.889795.948520.4448
Template load and register function0.00040.039310.0004
states
state_id_array0.00160.168710.0016
state_identifier_array0.00160.174120.0008
Override
Cache load0.00170.1840700.0000
Sytem overhead
Fetch class attribute can translate value0.00190.202870.0003
Fetch class attribute name0.00180.1964110.0002
XML
Image XML parsing0.00170.185170.0002
class_abstraction
Instantiating content class attribute0.00000.0038130.0000
General
dbfile0.00460.4928270.0002
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 48
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs