下载论坛附件时,附件名前自动加网站名 显示为“你的网站名称_附件原名”
0 i I: y) P9 {2 b" D2 r
& N# N9 d8 P% ^- M/ s一:打开source/module/forum/forum_attachment.php
1 i$ _& ?* k8 h# h) \* W找到:
- $thread && $attachexists = TRUE;
复制代码改为:
- $thread && $attachexists = TRUE;; l m$ R7 ?% {- h! B- ~
- $attach['filename'] = '你的网站名称_'.$attach['filename'];3 Z: O; ~$ H- R
复制代码二:打开source/function/function_attachment.php
: O+ A" U0 J: s7 t# `' P
找到:
改为:
- continue;) k. o6 v. x8 U; I/ ]
- $attach['filename'] = '你的网站名称_'.$attach['filename'];
复制代码把上面代码里的“你的网站名称”修改成你所需要的附件前缀名就可以了
$ L4 h2 E/ Z2 t5 G8 ^/ M9 e
修改好,上传覆盖更新即可。演示见本站附件(点下载就可以看到)