Topic: FLV Player BBCode - manifest.xml
This is the complete and working manifest.xml - should I change things I plan to publish here. If you want to subscribe the topic....
<extension engine="1.0">
<id>flv_bbcode_punbb</id>
<title>FlvBBcode</title>
<version>1.0.0</version>
<description>Adds FLV BBCodes to allow FLV embeding on your forum. Users just need to put it URL of file and add the bbCode FLV. Tweaking to parameters see http://www.longtailvideo.com/players/jw-flv-player/</description>
<author>KeyDog</author>
<minversion>1.3.0</minversion>
<maxtestedon>1.3.2</maxtestedon>
<hooks>
<hook id='ps_do_bbcode_replace'><![CDATA[
$pattern[] = '#\[flv\](.*?)\[/flv\]#';
$replace[] = '<object width="520" height="360" data="'.$ext_info['path'].'/player.swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"><param name="movie" value="'.$ext_info['path'].'/player.swf" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="autostart=true&height=520&width=360&file=$1" /><embed src="'.$ext_info['path'].'/player.swf" width="520" height="360" menu="false" allowfullscreen="true" flashvars="autostart=true&height=520&width=360&file=$1" type="application/x-shockwave-flash" pluginspage= "http://www.macromedia.com/go/getflashplayer"/></embed></object>';
]]></hook>
<hook id='ps_preparse_tags_start'><![CDATA[
// Added by KeyDog
$tags[] = 'flv';
$tags_opened[] = 'flv';
$tags_closed[] = 'flv';
]]></hook>
<hook id="he_new_bbcode_link"><![CDATA[
// add lang file
if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'.php')) {
require($ext_info['path'].'/lang/'.$forum_user['language'].'.php');
} else {
require($ext_info['path'].'/lang/English.php');
}
$lang_help = array_merge($lang_help, $lang_help_flv);
?>
<div class="entry-content">
<code>[flv]<?php echo $lang_help['flv_uri'] ?>[/flv]</code><span><?php echo $lang_help['produces'] ?></span>
<?php echo $lang_help['flv_display'] ?>
</div><?php
]]></hook>
</hooks>
</extension>