....if you want to extend the script and use the embed TED Player:
like the others, first create in parser.php another BBCode in the $pattern = array
I placed it on the first place
'#\[ted\](.*?)\[/ted\]#s',
Then in the $replace = array
also on the first place
//****** embed TED Videos ***************************************************
'<div class="bbvideo"><object width="500" height="445" align="top" data="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><embed src="http://static.videoegg.com/ted/flash/loader.swf?file=http://static.videoegg.com/ted/movies/$1" width="500" height="445" quality="best" align="top" wmode="transparent" allowScriptAccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object></div>',
//****** end TED Videos *****************************************************
If using this you don't have to put all the path into the bbcode tags - only the name of the FLV File:
[ted]EDBURTYNSKY_high.flv[/ted]