iFilm Action

See also:
Documentation: IFilmActionInfo.
This is the development page for the iFilm action.

This action provides you an interace to embed iFilm-Movies (like the YouTube Action).

iFilm plugin created by CimNine.

Licensed under Terms of GPLv2 or newer.
(c) by CimNine.
All rights reserved.

Based on YouTube plugin created by Grant Young.

USE: {{ifilm url="http://www.ifilm.com/video/#######" [width="425" height="350" bgcolor="#ffffff"]}}

'url' must be provided.
'width', 'height' and 'bgcolor' are all optional.  Defaults are listed above.

if (!($url)) {
    print "<strong>You must provide the iFilm url, including 'http://'.</strong>";
} else {
    if (!$width)
        $width = 425;
    if (!$height)
        $height = 350;
    if (!$bgcolor)
        $bgcolor = "#ffffff";

// http://www.ifilm.com/video/2854851 - if URL in this format, extract id of movie
$ptn = "/video\/([0-9]{7})$/";
if (preg_match($ptn, $url, $matches))
    $id = $matches[1];
    print "<strong>The provided URL was not in the correct format.</strong>";

print '<object type="application/x-shockwave-flash" data="http://www.ifilm.com/efp" width="'.$width.'" height="'.$height.'" id="VideoPlayback">
  <param name="movie" value="http://www.ifilm.com/efp" />
  <param name="allowScriptAccess" value="sameDomain" />
  <param name="quality" value="best" />
  <param name="bgcolor" value="'
.$bgcolor.'" />
  <param name="scale" value="noScale" />
  <param name="FlashVars" value="flvbaseclip='
.$id.'&" />

CategoryDevelopmentActions - CategoryUserContributions
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki