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 )