下载论坛附件时,附件名前自动加网站名 显示为“你的网站名称_附件原名”
/ z4 B; h* U* s0 |/ ~- e
4 [- Y. [" }, E& J/ ]一:打开source/module/forum/forum_attachment.php
) a z; d. G, ?2 n' f- b& D
找到:
- $thread && $attachexists = TRUE;
复制代码改为:
- $thread && $attachexists = TRUE;
7 d3 x/ {3 m) Q! \& Z. d - $attach['filename'] = '你的网站名称_'.$attach['filename'];" H0 d9 V: S$ d( ~/ m V
复制代码二:打开source/function/function_attachment.php
9 c+ ^6 j% J7 ], Y( f8 F找到:
改为:
- continue;
% V& _: ~# {$ J. c) m" g - $attach['filename'] = '你的网站名称_'.$attach['filename'];
复制代码把上面代码里的“你的网站名称”修改成你所需要的附件前缀名就可以了
/ }: Y% I$ ~+ R8 u+ `+ V修改好,上传覆盖更新即可。演示见本站附件(点下载就可以看到)