=====[[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]]).
actions/ifilm.php
%%(php)
You must provide the iFilm url, including 'http://'.";
return;
} 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];
}
else
{
print "The provided URL was not in the correct format.";
return;
}
print '';
?>
%%
----
CategoryDevelopmentActions - CategoryUserContributions