更改include/discuzcode.func.php文件,在其中插入:
- 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', '<center><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\');}"></center><br>')",
- "bbcodeurl('\\1', '<center><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\');}"></center><br>')",
- "bbcodeurl('\\1', '<center><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\');}"></center><br>')",
- "bbcodeurl('\\1', '<center><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\');}"></center><br>')",
- "bbcodeurl('\\2', '【<a href="\\2" target="_blank" style="color:#0000FF;font-weight:bold">点击下载文件</a>】')"),
- $message);
- }
复制代码
其中目录自改代码! |