Author Topic: SWF support  (Read 2367 times)

0 Members and 1 Guest are viewing this topic.

Offline Message Deejay

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +2/-0
  • Album.pl addicted
    • Personal Website
SWF support
« on: March 27, 2003, 19:35:42 »
i have loads of flash files that i really would like to add... i have tried to upload these but they are not being displayed...

toobad...
 :-[

is it possible to get this running?

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:SWF support
« Reply #1 on: March 27, 2003, 20:24:05 »
You can, but you have to put all your swf files into a single album.

Then put a local album.cfg in that album, pointing to a special album_photo.tml (object_template=album_photo_swf.tml for example).

Then copy album_photo.tml to album_photo_swf.tml and in that file, add the proper display code for an SWF. Maybe by replacing ####OBJECT#### with something like this:

Code: [Select]
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
  id="####OBJECTURL####" width="300" height="89">
  <param name="movie" value="####OBJECTURL####">

  <param name="quality" value="high">
  <param name="bgcolor" value="#000000">
  <embed name="####OBJECTURL####" src="####OBJECTURL####" quality="high" bgcolor="#000000"
    width="300" height="89"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
  </embed>
</object>

That will show an .swf file properly, but only in that single album.

I haven't tested it, but it should work.

Cheers

Offline Message Deejay

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +2/-0
  • Album.pl addicted
    • Personal Website
Re:SWF support
« Reply #2 on: March 31, 2003, 05:39:15 »
problem solved:

code should be:

<!-- The actual album contents (list of photos/sub albums in that album). See album_object.tml to define how each object appears. -->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">
        <param name=movie value="####OBJECTURL####">
        <param name=quality value=high>
        <embed src="####OBJECTURL####" quality=high bgcolor=#FFFFFF type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
        </embed>
      </object>   
   </div>

Offline Message Deejay

  • album.pl Tester
  • **
  • Posts: 27
  • Karma: +2/-0
  • Album.pl addicted
    • Personal Website
Re:SWF support
« Reply #3 on: March 31, 2003, 06:24:20 »
so like i said... you are right on that copieing that album.cfg to the flash directory.

only now, i am forced to set the per_member_upload on 0, otherwize people cannot upload to the Flash directory

por is there any other way to fixx this?

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:SWF support
« Reply #4 on: March 31, 2003, 14:41:07 »
Hi dj,

Unfortunately, it's one or the other, the per_member_upload config is a global flag... :(

I'm not sure what adding it to a local config would do. Probably break security and allow anyone to upload into any album if they click "upload" from the flash dir...