007 - Create a Joomla! v 1.5 plugin for [youtube] Videos - Joomla! Forum - community, help and support
title: create joomla! v 1.5 plugin [youtube] videos
description: using plugins/content/loadmodule.php , loadmodule.xml files an
example, create plugin load [youtube] video when end user
specifies {[youtube]}nnnnn{/[youtube]}. translate values embedded
html needed run video. when complete, create installation file
for joomla! v 1.5.
hi there!
as per http://code.google.com/p/google-highly-open-participation-joomla/issues/detail?id=7, developing plugin allows load [youtube] video using tag: {[youtube]}id{/[youtube]}
i'll keep of updated whenever have update it.
google task
[me=amystephen]changed subject slightly sorting threads match against google resource
[/me]
claimed: dec 2 due by: dec 30
description: using plugins/content/loadmodule.php , loadmodule.xml files an
example, create plugin load [youtube] video when end user
specifies {[youtube]}nnnnn{/[youtube]}. translate values embedded
html needed run video. when complete, create installation file
for joomla! v 1.5.
hi there!
as per http://code.google.com/p/google-highly-open-participation-joomla/issues/detail?id=7, developing plugin allows load [youtube] video using tag: {[youtube]}id{/[youtube]}
i'll keep of updated whenever have update it.
google task
[me=amystephen]changed subject slightly sorting threads match against google resource

claimed: dec 2 due by: dec 30
the regex be:
the replacer function like:
i'll try add width , height parameters user parameters can set plugin settings panel.
code: select all
"#{[youtube]}(.*?){/[youtube]}#s";
the replacer function like:
code: select all
function [youtube] ( &$matches ) {
$[youtube] = $matches[1];
$string = '
<object width="425" height="350"><param name="movie" value="http://www.[youtube].com/v/'. $[youtube].'"></param><embed src="http://www.[youtube].com/v/'. $[youtube].'" type="application/x-shockwave-flash" width="425" height="350"></embed></object>';
return $string;
}
i'll try add width , height parameters user parameters can set plugin settings panel.
Comments
Post a Comment