discuz 门户文章 优酷视频无法解析问题
修改 static/js/common.js
大概1250 行 function AC_FL_RunContent
中 else
部分
//修改优酷视频解析
if(ret.embedAttrs.src.indexOf("player.youku.com/player.php") != -1) {
src = ret.embedAttrs.src;
src = src.replace(/player.php\/(.*?)(sid|id_)/, "embed");
src = src.replace(/embed\/(.*?)\/v\.swf/, 'embed/$1==');
str += '<iframe '+
' height=' + ret.embedAttrs.height +
' width=' + ret.embedAttrs.width +
' src="' + src + '"' +
' frameborder=0' +
' allowfullscreen' +
' ></iframe>';
}else{
str += '<embed ';
for (var i in ret.embedAttrs) {
str += i + '="' + ret.embedAttrs[i] + '" ';
}
str += '></embed>';
}
}