Forums / Setup & design / Problem with flash media files

Problem with flash media files

Author Message

Salvatore Guarino

Monday 22 August 2005 3:00:22 am

I've create a custom class for a product. This class have 2 "objects relation" attributes. I've used the first one, "imgcentral", to show an image, using this code in the template:

{section show=$node.object.data_map.imgcentral.content} {attribute_view_gui alignment=left attribute=$node.object.data_map.imgcentral.content.data_map.image} 
{/section}

This works correctly.

I used the second one, "videoflash", to show a flash video, using this code:

{section show=$node.object.data_map.videoflash.content} {attribute_view_gui alignment=left attribute=$node.object.data_map.imgcentral.content.data_map.file} 
{/section}

In this case works, but there is a problem, anonimous user cannot see the video flash, stored in media section. Maybe this is right, but also the image is stored in media section, and anonimous users can see them. I've noticed that in the output html the image was retrived from another path (cached?):

<img src="/weissenfels/var/shop/storage/images/media/images/m44_loghi_iso/467-1-ita-IT/m44_loghi_iso_small.jpg" width="100" height="71"  style="border: 0px;" alt="" title="" />

The flash file, instead, is retrived directly from media folder:

<embed src="/weissenfels/index.php/weissenfels/content/download/112/496/M44.swf"
               quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
               width="400"               height="300"               play="true"
               loop="" >
        </embed>

There is a way to show media files (i.e. flash) like images files, without give read permission to anonimous users?

Thx,

Salvatore Guarino

Gabriel Ambuehl

Monday 22 August 2005 3:10:19 am

Without read permissions they obviously can't access the files ;)

Visit http://triligon.org

Salvatore Guarino

Monday 22 August 2005 4:22:02 am

This is rigth,

but anonimous users doesn't have permissions to read images stored in media section, but when I use the following code they can see the embedded image, without permissions:

{section show=$node.object.data_map.imgcentral.content} {attribute_view_gui alignment=left attribute=$node.object.data_map.imgcentral.content.data_map.image} 
{/section}

Marko Žmak

Monday 22 August 2005 4:41:39 am

Are you sure what are the permissions for anonymous user? Could you copy-paste them here?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Salvatore Guarino

Monday 22 August 2005 5:02:55 am

Anonimous / Role

content read Section( Standard , WCS , Flash , News , Prodotti , Il_gruppo , Contatti )

content pdf Section( Standard , WCS , Flash , News , Prodotti , Il_gruppo , Contatti )

shop buy Nessuna limitazione

rss feed Nessuna limitazione

user login SiteAccess( weissenfels , en )

eZ debug

Timing: Jan 19 2025 01:15:36
Script start
Timing: Jan 19 2025 01:15:36
Module start 'content'
Timing: Jan 19 2025 01:15:36
Module end 'content'
Timing: Jan 19 2025 01:15:36
Script end

Main resources:

Total runtime0.1853 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.0076 588.9688180.8359
Module start 'content' 0.00760.0108 769.804797.8984
Module end 'content' 0.01840.1668 867.7031528.3047
Script end 0.1852  1,396.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00432.3293200.0002
Check MTime0.00170.9169200.0001
Mysql Total
Database connection0.00100.558010.0010
Mysqli_queries0.127068.55791410.0009
Looping result0.00140.74131390.0000
Template Total0.166189.710.1661
Template load0.00110.588310.0011
Template processing0.165089.067310.1650
Override
Cache load0.00080.420410.0008
Sytem overhead
Fetch class attribute can translate value0.00080.430710.0008
XML
Image XML parsing0.00030.135010.0003
General
dbfile0.00713.8394200.0004
String conversion0.00000.003330.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.0001 secs