[pmwiki-users] flash recipe breaks cframe style

Dominique Faure dominique.faure at gmail.com
Thu Jan 26 10:54:06 CST 2006


2006/1/26, Hans <design at softflow.co.uk>:
> 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).
>

Well done!
I'm about to improve PTViewer in the same mood (and the
$EnableExternalResource variable). Thanks for the tip.

Dom




More information about the pmwiki-users mailing list