I've checked the website - well, whatever you need to add are the following additional tags and refs to the embedded code:
*
<param name="allowFullScreen" value="true"></param>*
allowfullscreen="true" value to the
<embed src...> tag
*
&fs=1 to all the URLs appearing in the code.
I've tried it for miniBB solution and it purely works... here are the codes:
- for enCodeBB function:
/* YouTube code */
$pattern[]="/\[youtube=http:\/(\/www\.|\/[a-z]+\.|\/)youtube\.com\/watch\?v=([a-zA-Z0-9-_]+)(.*)\]/i";
$replacement[]="<object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\2&fs=1\"></param><param name=\"wmode\" value=\"transparent\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\"http://www.youtube.com/v/\\2&fs=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"344\" allowfullscreen=\"true\"></embed></object>";
/* --YouTube code */
- for deCodeBB function:
/* YouTube code */
$pattern[]="/<object width=\"[0-9]+\" height=\"[0-9]+\"><param name=\"movie\" value=\"http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)&fs=1\"><\/param><param name=\"wmode\" value=\"transparent\"><\/param><param name=\"allowFullScreen\" value=\"true\"><\/param><embed src=\"http:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9-_]+)&fs=1\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" width=\"[0-9]+\" height=\"[0-9]+\" allowfullscreen=\"true\"><\/embed><\/object>/i";
$replacement[]="[youtube=http://www.youtube.com/watch?v=\\1]";
/* --YouTube code */