Este codigo esta obsoleto.
EL nuevo codigo seria, que ademas añade el enlace corto de youtube:
Quote::
# [youtube] and [/youtube] code..
$patterns[] = "#\[youtube\]http://(?:[A-Za-z]{2,3}\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = '
<!-- BEGIN youtube -->
<object width="560" height="315">
<param name="movie" value="http://www.youtube.com/v/\\1&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/\\1&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="315"></embed>
</object>
<!-- END youtube -->
';
// youtu.be (url corta)
$patterns[] = "#\[youtu\]http://(?:[A-Za-z]{2,3}\.)?youtu.be/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = '
<!-- BEGIN youtube -->
<object width="560" height="315">
<param name="movie" value="http://www.youtube.com/v/\\1&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/\\1&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="315"></embed>
</object>
<!-- END youtube -->
';
/* Antigua sustitución
$replacements[] = '
<!-- BEGIN youtube -->
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/http://www.youtube.com/v/\\1.swf"></param>
<embed src="http://www.youtube.com/v/http://www.youtube.com/v/\\1.swf" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object><br />
<!-- END youtube -->
';
*/