NP_SWFObject.php

Embed a Flash Movie (swf) with SWFObject tags by using either <%swfobja(filename.swf|width|height)%> for embedding an ALBUM or <%swfobjg(filename.swf|width|height)%> for embedding a GALLERY. This plug in is based on NP_Flash and SWFObject

Installing

  1. Unzip the files and upload the Plugin(s) - NP_SWFObjectAlbum.php and/ or NP_SWFObjectGallery.php - to your plugin directory
  2. Upload the swfobject.js file to your server
  3. Install the plugin(s) in the Plugin Manager

How to use the plugin

Normal usage

  1. Paste either <%swfobja(filename.swf|width|height)%> for Album or <%swfobjg(filename.swf|width|height)%> for Gallery into your post changing the relevant options
  2. Change any relevant fields in the plugin options screen

Very useful when publishing XML driven files like slideshows.

  1. Paste <%swfobja(filename.swf|width|height|aid)%> or <%swfobjg(filename.swf|width|height|gid)%> into your post changing the relevant options, ('aid' is for Album ID, 'gid' is the Gallery ID)
  2. Change any relevant fields in the plugin options screen

Available SkinVars and/or TemplateVars

  • Use either <%swfobja(filename.swf|width|height)%> to embed a normal flash file or <%swfobja(filename.swf|width|height|aid)%> / <%swfobjg(filename.swf|width|height|gid)%> to embed a SlideShowPro album/ gallery

Options

  • Default width (800)
  • Default height (600)
  • Default minimum Flash plugin version required (8)
  • Default Background colour (#000000)
  • Default Album/ Gallery name (Album/ Gallery)
  • Default for loop (true/false) (true)
  • Default for menu (true/false) (true)
  • Default for quality (high/low) (high)
  • Default window mode (window/opaque/transparent) (window)
  • Default XML path (Album) (optional) (http://mydomain.com/pathtomy/images.php?album=
  • Default XML path (Gallery) (optional) (http://mydomain.com/pathtomy/images.php?gid=
  • Default Album/ Gallery ID (optional) (0)

Tips and Tricks

Wishlist

Bugs

History

  • Version 1.0 of both Album and Gallery plugin released <25th May 2007>
swfobject.txt · Last modified: 2007/05/25 02:04 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki