效果:用户在下载DISCUZ论坛附件时,附件名前自动加网站名

操作方法:
1.修改source/module/forum/forum_attachment.php

  1. //替换:  
  2. $thread && $attachexists = TRUE;  
  3. //为  
  4. $thread && $attachexists = TRUE;  
  5. $attach['filename'] = '你的网站名称_'.$attach['filename'];  

*****做到步骤一,DISCUZ X1.5已经实现了下载DISCUZ论坛附件时,附件名前自动加网站名的效果,但网上也有下面步骤二,不知道什么意思*****
2.修改source/function/function_attachment.php

  1. //替换:  
  2. continue;  
  3. //为:  
  4. continue;  
  5. $attach['filename'] = '你的网站名称_'.$attach['filename'];  

这时再去你的DISCUZ论坛下载附件,你会发现名称前就自动加上了你要的字符串(不管是老附件还是新附件,都一样的效果)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2021-09-07
  • 2021-12-04
  • 2021-08-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-16
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
相关资源
相似解决方案