下载论坛附件时,附件名前自动加网站名 显示为“你的网站名称_附件原名”
$ @/ E9 G4 d" V- O8 @6 X
( F; f! [* R: r/ d0 w* B一:打开source/module/forum/forum_attachment.php
) ?. q+ r( g p8 u3 p找到:
- $thread && $attachexists = TRUE;
复制代码改为:
- $thread && $attachexists = TRUE;; `; c1 D; T3 q
- $attach['filename'] = '你的网站名称_'.$attach['filename'];" B1 P b# \# k8 o
复制代码二:打开source/function/function_attachment.php
; q2 Y; j6 q( y, \找到:
改为:
- continue;; F$ l: t: E1 D. d7 G; P, t
- $attach['filename'] = '你的网站名称_'.$attach['filename'];
复制代码把上面代码里的“你的网站名称”修改成你所需要的附件前缀名就可以了
' e/ L& T- ?( c5 A修改好,上传覆盖更新即可。演示见本站附件(点下载就可以看到)