Allows easy embedding (shortcode inserted via Add Media button while posting) and better management of swf files.
This plugin allows easy embedding of swf files and better media management for swf files, allowing swf files to have a
height, width, and their own minimum flash version. This plugin adds a swfobject shortcode that can be inserted via
the “Add media” button while editing a post. SWF files are now also automatically embedded on their respective
attachment pages.
Technical support for this plugin will be provided via the WordPress plugin forum. Additional support may be
available at plugin’s homepage.
Installation is simple and straight-forward:
swfobject_reloaded.zip
to the /wp-content/plugins/
directoryTo embed a swf in a post (or page), do the following:
At a minimum, the swf media file must be specified, either as the media ID number (entered automatically by
swfObject Reloaded when the swf is inserted into the post or page), or as a URL.
Here are all the parameters that can be specified:
Parameters must be entered in the order shown. To skip a parameter, just leave it completely blank (i.e.,
don’t type anything) followed by the comma to separate it from the next parameter.
See Flash OBJECT and EMBED tag attributes for more information on using the flashvar and base parameters.
Examples:
[swfobject]573[/swfobject]
This is the simplest usage, specifying only the media ID of the swf.
[swfobject]http://www.example.com/test.swf,300,200[/swfobject]
Another simple example using an external URL. Note that the width and height parameters should be specified.
[swfobject]http://www.example.com/test2.swf,250,120,foo:"bar"|bar:"baz",http://www.example.com/[/swfobject]
This example uses an external URL, and includes the width, height, flashvar (foo:”bar” and bar:”baz”) and base
(http://www.example.com/) parameters.
Flashvars are separated by a delimiter that cannot be a comma. You can change the delimiter by passing a delimiter attribute. [swfobject delimiter='&']12,,,foo:"bar"&bar:"baz"[/swfobject]
Use the swflink
shortcode in the form of [swflink]ID[/swflink]
.
For example [swflink]573[/swflink]
The screen size of the swf file is determined by checking for the following, in this order:
If none of those are found, an error message will be displayed instead of the swf.
If Scale Flash Content is checked, the screen size of the swf file will be scaled (preserving its aspect ratio) to:
The settings define how Flash content will be embedded with the shortcode, as follows:
Scale Flash content – Checking this box will cause excessively large or small flash content to be scaled to
the “Maximum embed size”, if any, entered on the ‘Settings->Media’ menu (or the “Medium Size” on that same
menu if no maximum size is entered). The original aspect ratio will be preserved.
iPhone Alternate content – iPhones do not currently support Flash content. The text entered here will be
displayed if the user is accessing the site via an iPhone.
Alternate Content – If Flash is not detected on the user’s browser, the text entered here will be displayed.
additional params – These are the parameters in name:”value” pairs that are applied to every instance of the
swfobject shortcode. See Flash OBJECT and EMBED tag attributes for more information on using parameters.
Minimum Flash version – This is the minimum Flash version that can be embedded on your blog. This can be
overridden by setting the value on the media itself when it’s added to the Media Library.