Hallo, Youtube hat ja nun einiges umgestellt, und ich kann jetzt leider aus dem <embed>-element mir den Link zum Einbetten nicht mehr selber erstellen!
Vorher ging das mit folgendem Code:
	
hinter "rec_v" hat sich die ID zu dem Video befunden. Einfach ausgelesen und in ein Object getan. Fertig war der Code zum Einbinden.
							
						
					Vorher ging das mit folgendem Code:
PHP-Code:
	
	
            if (preg_match_all('#rec_v=([a-zA-Z0-9]+)|hl=([a-zA-Z_]+)|allow_embed=([0-9])#i',$strCode,$arrMatches,PREG_PATTERN_ORDER)) {
                if (isset($arrMatches[0][1]) && isset($arrMatches[0][1]) && isset($arrMatches[0][2])) {
                    if ($arrMatches[3][0] == 1) {
                        return '<object width="100%" height="100%"><param name="movie" value="http://www.youtube.com/v/'
.$arrMatches[1][2].'&hl='.$arrMatches[2][1].'&fs=1&">
</param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/'.$arrMatches[1][2].'&hl='.$arrMatches[2][1].'&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" 
allowfullscreen="true" width="100%" height="100%"></embed></object>';
                    } else {
                        $this->log_add('Can not convert youtube.com (1) video: '.htmlentities($strCode),1);
                        return $strCode;
                    }
                } else {
                    $this->log_add('Can not convert youtube.com (2) video: '.htmlentities($strCode),1);
                    return $strCode;
                }
            } 
          
 Moderatorin

							
						
Kommentar