Extension:Flashow
From MediaWiki.org
<flashow>http://www.dailymotion.com/swf/6ZB4AQBhhrlnl2Tn2|width=213|height=175</flashow>
|
Release status: unknown |
|
|---|---|
| Implementation | Tag |
| Description | embeds a widget that runs flash movies |
| License | No license specified |
| Download | version 0.01 |
|
check usage (experimental) |
|
The Flashow extension (FlashOnWeb) will allow the display of flash movies which are stored on a site Web outside of the wiki. For a Flash extension which allows the display of flash movies within a wiki, see Flash.
Contents |
[edit] Syntax
[edit] Base Syntax
<flashow>url|attribute=value|...</flashow>
[edit] Attribute Reference (hope so)
- width=px or % (Modify the width of the object)
- height=px or a% (Modify the height of the object)
- play=true/false (Start playing the file or wait at first frame, default:true)
- loop=true/false (Loop the animation, default:true)
- quality=low/autolow/medium/high/autohigh/best (Predefine the quality)
- devicefont=true/false (Change the look of the text used in flash file)
- bgcolor=#?????? (? -> Hexadecimal integer: 1-9, A-F)
- scale=showall/noborder/exactfit (Automatically adjust content to width and height)
- menu=true/false (Show or hide the menu on right-click)
- align
- salign
- base
- wmode
- SeamlessTabbing
- flashvars
- name (object-specific)
- id (embed-specific)
- movie (object-specific)
- src (embed-specific)
[edit] Examples
<flashow>http://www.dailymotion.com/swf/6ZB4AQBhhrlnl2Tn2|width=213|height=175</flashow>
You can see what it's give on the french wikisite President2007.biz: Homepage - Directly to the video
[edit] Code/Downloads
[edit] Installation
- Click on one of the versions above. Be careful: concerning the 0.01 version, it's really my first php script. So, It's absolutely with NO GARANTEES. --Eric larcher 15:09, 23 September 2006 (UTC)
- Copy the code into a file (e.g. Flashow.php)
- Save the file in the extensions directory of your mediawiki folder
- Add the line
include('extensions/Flashow.php');to the end of your LocalSettings.php file (The name of your file is case sensitive!)
Now you can use the extension with <flashow>...</flashow> in the wiki
[edit] Comments
[edit] Should be ok with Dailymotion.com and Youtube.com
I have tested Flashow withe teh Web services Dailymotion.com and Youtube.com. I encountered non problems until now.--Eric larcher 15:09, 23 September 2006 (UTC)
Also works with iFilm.com, but iFilm uses the "flashvars" attribute, so you've got to modify the code of the extension as detailed below. Faithx5 20:09, 18 January 2007 (UTC)
[edit] No idea for others places
[edit] Known Bugs and limits
- With Flashow v0.01, only parameters width and height are effectives.
- What the comment above means that despite all the attributes listed above, only width and height actually work. If you look at the script, find the section
#get parameters from argument-array $width = @$args["width"]; $height = @$args["height"];
Note only two paramters are listed. For example, I needed to pass flashvars, so to the above i added;
$flashvars= @$args["flashvars"];
You also need to edit the output string to include the parameters you add. In my case;
$output = '<object width="' . $width . '" height="' . $height . '> <param name="movie" value="' . $url . '"></param><param name="wmode" value="transparent"> </param>'''<PARAM NAME="FlashVars" VALUE=' . $flashvars . '</param>''' <embed src="' . $url . '" type="application/x-shockwave-flash" wmode="transparent" '''flashvars=' . $flashvars . '''' width="' . $width . '" height="' . $height . '"' . '></embed> </object>';
Thanks for the great extension. Though I would have taken an extra few minutes to release something a bit more 'ready for prime time'.
[edit] Alternatives
Warning: Default sort key "Flashow" overrides earlier default sort key "FLASHOW".