请问,D3.0F B3 中是不是不用改这一步?
include/discuzcode.func.php修改开始
查找:
CODE:[Copy to clipboard]if(!$bbcodeoff && $allowimgcode) {
if(empty($discuzcodes['searcharray']['imgcode'])) {
$discuzcodes['searcharray']['imgcode'] = array(
"/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
"/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
"/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
);
$discuzcodes['replacearray']['imgcode'] = array(
"bbcodeurl('\\1', ' <img src=\"images/attachicons/flash.gif\" align=\"absmiddle\"> <a href=\"%s\" target=\"_blank\">Flash: %s</a> ')",
"bbcodeurl('\\1', '<img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onmouseover=\"if(this.resized) this.style.cursor=\'hand\';\" onclick=\"if(!this.resized) {return true;} else {window.open(\'%s\');}\" onmousewheel=\"return imgzoom(this);\">')",
"bbcodeurl('\\3', '<img width=\"\\1\" height=\"\\2\" src=\"%s\" border=\"0\">')"
);
}
$message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
}
整段替换为:
CODE:[Copy to clipboard] if(!$bbcodeoff && $allowimgcode) {
if(empty($discuzcodes['searcharray']['imgcode'])) {
$discuzcodes['searcharray']['imgcode'] = array(
"/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
"/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
"/\[swf=(\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/swf\]/ies",
"/\[wmv\]\s*(.+?)\s*\[\/wmv\]/ies",
"/\[mp3\]\s*(.+?)\s*\[\/mp3\]/ies",
"/\[ron\]\s*(.+?)\s*\[\/ron\]/ies",
"/\[rm\]\s*(.+?)\s*\[\/rm\]/ies",
"/\[wmv=(\d+?)[x|\,](\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/wmv\]/ies",
"/\[rm=(\d+?)[x|\,](\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/rm\]/ies",
"/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
);
$discuzcodes['replacearray']['imgcode'] = array(
"bbcodeurl('\\1', '<a href=\"%s\" target=\"_blank\"><u>※单击鼠标在新窗口中打开※</u></a><br><br><embed width=\"360\" height=\"300\" src=\"%s\" type=\"application/x-shockwave-flash\"></embed>')",
"bbcodeurl('\\1', '<br><img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'单击这里开新视窗查看\\n按住CTRL,并滚动鼠标滚轮缩放图片大小\';}\" onmouseover=\"if(this.resized) this.style.cursor=\'hand\';\" onclick=\"if(!this.resized) {return true;} else {window.open(\'%s\');}\" onmousewheel=\"return imgzoom(this);\">')",
"bbcodeurl('\\3', '<a href=\"%s\" target=\"_blank\"><u>※单击鼠标在新窗口中打开※</u></a><br><br><embed width=\"\\1\" height=\"\\2\" src=\"%s\" type=\"application/x-shockwave-flash\"></embed>')",
"bbcodeurl('\\1', '<br><input type=\"button\" name=\"mplayer\" onclick=\"document.MediaPlayer.DisplaySize=3\" value=\"全屏播放\"> [ 双击退出全屏播放状态 ] <br><br><object align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"OBJECT\" id=\"MediaPlayer\" width=\"360\" height=\"300\" ><PARAM NAME=\"AutoStart\" VALUE=\"0\" ><param name=\"enableContextMenu\" value=\"0\"><param name=\"ShowStatusBar\" value=\"-1\"><param name=\"Filename\" value=\"%s\"><embed type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" flename=\"mp\" src=\"%s\" width=\"360\" height=\"300\"></embed></object>')",
"bbcodeurl('\\1', '<object align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"OBJECT\" id=\"MediaPlayer\" width=\"480\" height=\"68\" ><PARAM NAME=\"AutoStart\" VALUE=\"-1\" ><param name=\"enableContextMenu\" value=\"0\"><param name=\"ShowStatusBar\" value=\"-1\"><param name=\"Filename\" value=\"%s\"><embed type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" flename=\"mp\" src=\"%s\" width=\"480\" height=\"68\"></embed></object>')",
"bbcodeurl('\\1', '<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" id=\"Player\" width=\"480\" height=\"0\" viewastext><param name=\"Autostart\" value=\"-1\"><param name=\"CONTROLS\" value=\"ImageWindow\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"CONSOLE\" value=\"_master\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=480 VIEWASTEXT><param name=\"_ExtentX\" value=\"18256\"><param name=\"_ExtentY\" value=\"794\"><param name=\"Autostart\" value=\"-1\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"><param name=\"BACKGROUNDCOLOR\" value=\"#000000\"><param name=\"SRC\" value=\"%s\"></object>')",
"bbcodeurl('\\1', '<br><input type=\"button\" name=\"rmplayer\" onclick=\"document.rmplayer.SetFullScreen()\" value=\"全屏播放\"> [ 按ESC退出全屏播放状态 ] <br><br><object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" id=\"rmplayer\" width=\"360\" height=\"300\" viewastext><param name=\"Autostart\" value=\"0\"><param name=\"CONTROLS\" value=\"ImageWindow\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"CONSOLE\" value=\"_master\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=360 VIEWASTEXT><param name=\"_ExtentX\" value=\"18256\"><param name=\"_ExtentY\" value=\"794\"><param name=\"Autostart\" value=\"0\"><param name=\"LOOP\" value=\"0\"><param name=\"CENTER\" value=\"0\"><param name=\"BACKGROUNDCOLOR\" value=\"#000000\"><param name=\"SRC\" value=\"%s\"></object>')",
"bbcodeurl('\\4', '<br><input type=\"button\" name=\"mplayer\" onclick=\"document.MediaPlayer.DisplaySize=3\" value=\"全屏播放\"> [ 双击退出全屏播放状态 ] <br><br><object align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"OBJECT\" id=\"MediaPlayer\" width=\"\\1\" height=\"\\2\" ><PARAM NAME=\"AutoStart\" VALUE=\"\\3\" ><param name=\"ShowStatusBar\" value=\"-1\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"Filename\" value=\"%s\"><embed type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" width=\"\\1\" height=\"\\2\"></embed></object>')",
"bbcodeurl('\\4', '<br><input type=\"button\" name=\"rmplayer\" onclick=\"document.rmplayer.SetFullScreen()\" value=\"全屏播放\"> [ 按ESC退出全屏播放状态 ] <br><br><object width=\"\\1\" height=\"\\2\" classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" id=\"rmplayer\" viewastext><param name=\"Autostart\" value=\"\\3\"><param name=\"CONTROLS\" value=\"ImageWindow\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"CONSOLE\" value=\"_master\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=\"\\1\" VIEWASTEXT><param name=\"_ExtentX\" value=\"18256\"><param name=\"_ExtentY\" value=\"794\"><param name=\"Autostart\" value=\"\\3\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"><param name=\"SRC\" value=\"%s\"></object>')",
"bbcodeurl('\\3', '<img width=\"\\1\" height=\"\\2\" src=\"%s\" border=\"0\">')"
);
}
$message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
} |