[pmwiki-users] Make flv module php >= 5.5 compatible
Petko Yotov
5ko at 5ko.fr
Thu Aug 6 13:06:40 CDT 2015
On 2015-08-06 17:37, Jean-Pierre Chrétien wrote:
> Petko Yotov <5ko <at> 5ko.fr> writes:
>
>> It would be
>>
>> before: '$1$2'
>> after : \$m[1].\$m[2]
>>
>> (no quotes, dot between them)
>
>
> Ok, so I edited the Markup command, here is the diff:
>
> -Markup('flv', '<urllink',
> - "/\\b(?>(\\L))([^\\s$UrlExcludeChars]+\\.flv)/e",
> - "Keep(\$GLOBALS['LinkFunctions']['$1'](\$pagename,'$1',\
> '$2',NULL,'$1$2',
> +Markup_e('flv', '<urllink',
> + "/\\b(?>(\\L))([^\\s$UrlExcludeChars]+\\.flv)/",
> +
> "Keep(\$GLOBALS['LinkFunctions'][\$m[1]](\$pagename,\$m[1],\$m[2],\
> NULL,\$m[1].\$m[2],
> \$GLOBALS['FlvTagFmt']), 'L')");
>
> No more errors about deprecated "e" modifier, but the recipe simply
> does not
> work, the flv video does not appear.
>
> I will check if swf.php works.
Are you able to see the first video which is a FLV video, at this page:
http://galleries.accent.bg/Cookbook/Ape#embed_video_players
I can play it on Firefox but not on Chromium (on Ubuntu, and I don't
have any media plugins enabled).
If it works for you, I'll release a new version of that recipe, which is
PHP5.5 safe.
Note that it requires JavaScript to be enabled, or the user will only
see a link to the video file, and will be able to click on it and either
download the video or play it in the browser, if the necessary plugins
are enabled.
Petko
--
Change log : http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes : http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade : http://www.pmwiki.org/wiki/PmWiki/Upgrades
If this message helped you and saved you time, feel free to make
a small contribution: http://5ko.fr/donate-ml (mailing list).
More information about the pmwiki-users
mailing list