Extension talk:Flash swf
From MediaWiki.org
Contents |
[edit] SWFObject?
It might be a little more complicated to install, but why not make a version that uses SWFObject? It's by far the best way to embed SWFs these days and it gets around the EOLAS click to activate problem in IE. The code is also W3C.org compliant and works well in every browser I've tested it in.
[edit] problem
I've got the Extension Flash swf working but for some reason I can't get the height and width arguments to work. No matter what the size of my swf is it always appears at 550 x 400.
Any idea why?
[edit] not working
I get this all the time "No path for internal Media"
- try the patch for Mediawiki 1.11 below, I had the same problem 130.83.196.179 11:48, 15 January 2008 (UTC)
how do you set up wiki to allow uploads of swf in nice way.
[edit] Repeating
Is there a way to get the swf file to automatically repeat?
[edit] Patch for Mediawiki 1.11
In order for this extension to work with Mediawiki 1.11.0, I had to change the following lines:
OLD:
$img->load(); if ( ! $img->imagePath ) return "No path for internal Media:$input"; $dir = dirname($_SERVER['SCRIPT_FILENAME']); $url = str_replace($dir, $wgScriptPath, $img->imagePath );
NEW:
$img->load(); if ( ! $img->getUrl() ) return "No path for internal Media:$input"; $dir = dirname($_SERVER['SCRIPT_FILENAME']); $url = str_replace($dir, $wgScriptPath, $img->getUrl() );
[edit] Patch for Mediawiki 1.7.1
if ( ! $img->getUrl() ) return "No path for internal Media:$input"; $url = $img->getViewURL(false);

