Overview
This plugin makes it quick and simple to insert flash movies into your worpress posts using a UBB style tag.
The syntax to insert a movie is as follows
[swf]src,width,height,ver,bgcol,alt[/swf]
- swf the address of your flash movie
- width the width of your movie – either the number of pixels or a percentage
- height the height of your movie – either the number of pixels or a percentage
- ver the version of the flash movie (defaults to 5)*
- bgcol the background colour of the movie (defaults to white)*
- alt the address of the graphic to use if the flash plugin is not found*
* optional
Examples
1) [swf]/images/addvrt.swf,170,170,5,#000000[/swf] gives
2) [swf]http://video.google.com/googleplayer.swf?docId=-3054014799466172915, 400, 326, 8, #ffffff[/swf] gives
if flash wasn’t installed or of high enough version the following would be shown
Installation instructions
- Download the plugin from here
- Unzip the archive and upload the contents to your plugins folder (ususally site root/wp-content/plugins
- Goto your administration panel, choose plugins and enable the plugin
Install notes
The current version of wordpress (2.0.3 at time of writing) treats XHTML CDATA tags in an odd way, this has been submitted here as a bug, so this may be fixed in the future. There is a simple fix described here.
This plugin utilises Geoff Stearns swfObject, so if your already including the swfObject classes in your pages then comment out the following line (plugins/swfEmbed.php)
<php/>
echo('<script type="text/javascript" src="'.get_settings
('siteurl').
'/wp-content/plugins/swfEmbed/swfobject.js"></script>'.
chr(10));
:: UPDATED 0.7 ::
For war59312 – strips the <p> tags added by TinyMCE that upset the validator. Auto-hyperlink URLs plug-in compatability fix.
:: UPDATED 0.8 ::
Be nice to other plugins release – uses a cleaner two pass approach that improves compatability with third party plugins.
:: UPDATED 0.9 ::
Improved patern matching.