1) { $vid= explode('=',$parts[0],2); $vid = $vid[1]; $width = $parts[1]; if(count($parts) > 2) { $height = $parts[2]; } else { $height = ""; } $replace = 'You need to a flashplayer enabled browser to view this YouTube video'; } else { $vid= explode('=',$matches[1][$x]); $vid = $vid[1]; $replace = 'You need to a flashplayer enabled browser to view this YouTube video'; } $content = str_replace($matches[0][$x], $replace, $content); } return $content; } function googlevideo_content($content) { $regex = '/\[googlevideo:(.*?)]/i'; preg_match_all( $regex, $content, $matches ); for($x=0; $x 1) { $vid= explode('=',$parts[0]); $vid = $vid[1]; $width = $parts[1]; if(count($parts) > 2) { $height = $parts[2]; } else { $height = ""; } $replace = 'vYou need to have flashplayer enabled to watch this Google video'; } else { $vid= explode('=',$matches[1][$x]); $vid = $vid[1]; $replace = 'You need to have flashplayer enabled to watch this Google video'; } $content = str_replace($matches[0][$x], $replace, $content); } return $content; } ?>