请教...哪有这个补丁啊??我从DV7.1转换到DZ5最新版后..上传的图片都没法显示.
只显示[upload=jpg]UploadFile/2006-5/2006514162637812.jpg[/upload] 这样的代码.请问要怎样修改回来??
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
呵呵.找到了修改的地方..分享给大家...
找到..include/discuzcode.func.php 再按下面添加那段代码就可以..在两段红色代码之间添加
$message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
}
- ======显示图片dvbbs图片========
- global $tid;
- if ($tid <= 209482) {
- $message = preg_replace(array(
- "/\[Upload=gif\]\s*([^\[]+?)\s*\[\/Upload\]/ies",
- "/\[Upload=jpg\]\s*([^\[]+?)\s*\[\/Upload\]/ies",
- "/\[Upload=png\]\s*([^\[]+?)\s*\[\/Upload\]/ies",
- "/\[Upload=bmp\]\s*([^\[]+?)\s*\[\/Upload\]/ies",
- "/\[Upload=(.*)\]\s*([^\[]+?)\s*\[\/Upload\]/ies"),
- array(
- "bbcodeurl('\\1', '<img src="attachments/dvbbs/\\1" border="0" onload="if
- (this.width>screen.width*0.6) {this.resized=true; this.width=screen.width*0.6; this.alt=\'Click here to open new window\';}"
- onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(this.resized) {window.open(\'\\1\');}"><br>')",
- "bbcodeurl('\\1', '<img src="attachments/dvbbs/\\1" border="0" onload="if
- (this.width>screen.width*0.6) {this.resized=true; this.width=screen.width*0.6; this.alt=\'Click here to open new window\';}"
- onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(this.resized) {window.open(\'\\1\');}"><br>')",
- "bbcodeurl('\\1', '<img src="attachments/dvbbs/\\1" border="0" onload="if
- (this.width>screen.width*0.6) {this.resized=true; this.width=screen.width*0.6; this.alt=\'Click here to open new window\';}"
- onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(this.resized) {window.open(\'\\1\');}"><br>')",
- "bbcodeurl('\\1', '<img src="attachments/dvbbs/\\1" border="0" onload="if
- (this.width>screen.width*0.6) {this.resized=true; this.width=screen.width*0.6; this.alt=\'Click here to open new window\';}"
- onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(this.resized) {window.open(\'\\1\');}"><br>')",
- "bbcodeurl('\\2', '【<a href="\\2" target="_blank" style="color:#0000FF;font-
- weight:bold">点击下载文件</a>】')"),
- $message);
- }
- ======显示图片dvbbs图片========
复制代码
for($i = 0; $i <= $discuzcodes['pcodecount']; $i++) {
[ 本帖最后由 ycqq 于 2006-12-15 13:55 编辑 ] |