Flash: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
No edit summary
Lcarsdata (talk | contribs)
m {{MoveToMediaWiki}}
Line 1: Line 1:
{{MoveToMediaWiki}}
The flash extension allows the display of flash movies within a wiki.
The flash extension allows the display of flash movies within a wiki.



Revision as of 16:19, 27 October 2006

 
This page should be moved to MediaWiki.org.
Please do not move the page by hand. It will be imported by a MediaWiki.org administrator with the full edit history. In the meantime, you may continue to edit the page as normal.

The flash extension allows the display of flash movies within a wiki.

Syntax

Base Syntax

<flash>file=filename.swf|attribute=value|...</flash>

Attribute Reference

  • 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)

Examples

<flash>file=happy.swf|width=10%|height=30|quality=best</flash>
Shows the movie with the best quality with a width of 10% and a height of 30 pixels.

<flash>file=cool.swf|width=200|height=300|bgcolor=#FDE742|scale=exactfit</flash>
Shows the movie with a width of 200 and a height of 300. The background color is light-yellow (#FDE742). The content of the movie is stretched to the size of 200x300.


Code / Downloads

Installation

  1. Click on one of the versions above
  2. Copy the code into a file (e.g. Flash.php)
  3. Save the file in the extensions directory of your mediawiki folder
  4. Add the line include('extensions/Flash.php'); to the end of your LocalSettings.php file (The name of your file is case sensitive!)

Now you can use the extension with <flash>...</flash> in the wiki

Frequently Asked Questions

I can't upload Flash (*.swf) files!

If you cannot upload anything, then first enable uploads. Find the line #$wgDisableUploads = false; in LocalSettings.php and uncomment it.

By default, Mediawiki still blocks many files from being uploaded for security reasons. Add this line your LocalSettings.php file, which will allow the upload of Flash files:

$wgFileExtensions[] = 'swf';

See also Help:Images and other uploads: You may also need to remove the desired extension from the filetype blacklist in /includes/DefaultSettings.php.

We founded an issue with the Mime Type Filter : Uploads were enabled, FileExtensions "swf" added, BlackList checked and still no upload. So when adding $wgVerifyMimeType= false; in LocalSettings.php we succeeded in uploading swf files. It certainly needs further investigations but for the time being it works

Known Bugs

  • Possible security issues with Javascript that are not tested yet