There is some dmeand for embedding videos from service called stream.cz into posts. It is Czech compmetition to YouTube.
We are talking about bb_codes.php here-
Well, what I managed to implement thEncode part well and it works to my own surprise. Let me show you both (YouTube And Streamcz) side to side:
/* 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\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/\\2\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"344\"></embed></object>";
/* --YouTube code */
/* Stream code */
$pattern[]="/\[streamcz=http:\/(\/www\.|\/[a-z]+\.|\/)stream\.cz\/video\/([a-zA-Z0-9-_]+)(.*)\]/i";
$replacement[]="<object width=\"450\" height=\"296\"></param><param name=\"allowfullscreen\" value=\"true\"><param name=\"wmode\" value=\"transparent\">
<embed src=\"http://www.stream.cz/object/\\2\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" allowfullscreen=\"true\" height=\"354\" width=\"450\"></embed></object>";
/* --Stream code */