[pmwiki-users] flash recipe breaks cframe style

Hans design at softflow.co.uk
Thu Jan 26 07:26:28 CST 2006


I uploaded flash.php as another solution, using a different syntax.
http://www.pmwiki.org/wiki/Cookbook/Flash

* Markup syntax examples:
1. (:flash Attach:myflash.swf width=300 height=200:)
2. (:flash http://example.com/path/myflash.swf width=200 height=200:)

Width and height are optional. Setting $EnableExternalResource = 0;
will disable use of syntax 2, i.e. only uploaded flash animations can
be shown, not externally linked ones.

By using a (:flash ..:) markup the width and height styling problems
are avoided.

If Attach:myflash.swf does not exist the page shows Attach:myflash.swf
as a link to upload the file. If an external swf file does not exist
nothing is shown.

I modified code from quicktime.php (Schlaefer) and swf.php and added the
possibility to use an external resource.

I wonder if using a variable $EnableExternalResource may be useful for
managing other links as well, like using/disabling external references
to show images on ones site (the question came up yesterday how to do
that).


Best, 
~Hans                           






More information about the pmwiki-users mailing list