Wiki source for IFilmAction

Show raw source

=====[[IFilmAction | iFilm]] Action=====

>>==See also:==
Documentation: IFilmActionInfo.>>This is the development page for the [[IFilmAction | iFilm]] action.::c::
This action provides you an interace to embed iFilm-Movies (like the [[YouTube | 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="" [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";

// - 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="" width="'.$width.'" height="'.$height.'" id="VideoPlayback">
<param name="movie" value="" />
<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
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki