vPIP & MediaWiki Plugin

v1.0 – 8/13/2007 Initial Release –
tar.bz Download – Release Announcement Here (for comments)

This is the initial release of the vPIP & MediaWiki Plugin.  For an example of this plugin in use, visit the DAAC Wiki, specifically this Gallery Page.

Installation

  1. First, download the vPIP Package from www.vpip.org (from the “All Other Installs” page).
  2. Edit your MediaWiki install\’s skins/MonoBook.php and add the necessary lines (shown at the bottom of the All Other Installs page) right before the </head> tag.
  3. Download the VPIP & MediaWiki Plugin and unzip it into a temporary directory.
  4. Place the 2 GIF images in an web-accessible location on your webserver.
  5. Place the vPIP.php file in your wiki\’s “extensions” directory.
  6. Modify the vPIP.php file to reference the location of the images you installed.  (Near the bottom, you\’ll see the <img src tags).
  7. Modify your wiki\’s LocalSettings.php to add the following line: require_once(“$IP/extensions/vPIP.php”);
  8. With all these done, you should be able to visit your Wiki\’s “Special:Version” page and see <video> as a new Parser Extension.

Usage:

To add a VPIP video to a page, use a syntax like the following:

<video>
url=<video URL>
height=<video height>
width=<video width>
image=<placeholder image URL>
title=<video Title>
caption=<video Caption>
download=<download URL>
type=<video MIME Type>
</video

Notes:

  • If the Caption is unspecified, then the Title will be reused as the caption.
  • If the height & width are not specified, they default to 320×260.
  • If the type is not specified, it will attempt to determine the video type from the file extension.
  • If the download URL is not specified, the “Download this Movie” will not be shown.
  • To see what inspired this plugin, and an earlier version of the PHP code behind it, read This Post.
Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • FriendFeed
  • MySpace
  • Netvibes
  • Ping.fm
  • Technorati
  • Tumblr