Discuz   发布时间:2022-05-06  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了DISCUZ X1.5下载附件名称前加本站名称大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

效果:用户在下载DISCUZ论坛附件时,附件名前自动加网站名操作方法:1.修改source/module/forum/forum_attachment.phpview plaincopy to clipboardprint?//替换:  $thread && $attachexists = TRUE;  //为  $thread && $attachexists = TRUE;  $attach['filename'] = '你的网站名称_'.$attach['filename'];  *****做到步骤一,DISCUZ X1.5已经实现了下载DISCUZ论坛附件时,附件名前自动加网站名的效果,但网上也有下面步骤二,不知道什么意思*****2.修改source/function/function_attachment.phpview plaincopy to clipboardprint?//替换:  conTinue;  //为:  conTinue;  $attach['filename'] = '你的网站名称_'.$attach['filename'];  这时再去你的DISCUZ论坛下载附件,你会发现名称前就自动加上了你要的字符串(不管是老附件还是新附件,都一样的效果)

<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 16px; font-family: 'Trebuchet MS',Arial,sans-serif; color: rgb(64,64,64); font-size: 13px" class="Apple-style-span">
<p style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 16px">效果用户在下载DISCUZ论坛附件时,附件名前自动加网站名


<p style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 16px">操作方法:1.修改source/module/forum/forum_attachment.<a href="http://www.sn03.com" target="_blank"><span class="wp_keywordlink_affiliate"><a style="outline-style: none; color: rgb(102,149,23); text-decoration: none" title="查看 php 的全部文章" href="http://blog.fend.cn/tag/php" target="_blank">php


<div style="overflow-x: auto; overflow-y: auto; BACkground-color: rgb(231,229,220); margin: 18px 0px; width: 594px; font-family: Consolas,'Courier New',Courier,mono; font-size: 12px; padding-top: 1px" class="dp-Highlighter">
<div style="padding-left: 45px" class="bar">
<div style="border-left: rgb(108,226,108) 3px solid; padding-bottom: 10px; BACkground-color: rgb(248,248,248); padding-left: 10px; padding-right: 8px; font: 9px Verdana,Geneva,Helvetica,sans-serif; color: silver; padding-top: 3px" class="tools">
<a style="outline-style: none; color: rgb(160,160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('Viewsource',this);return false;" href="#">view plain<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" href="#">copy to clipboard<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('Printsource',this);return false;" href="#">print<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('About',this);return false;" href="#">?

大佬总结

以上是大佬教程为你收集整理的DISCUZ X1.5下载附件名称前加本站名称全部内容,希望文章能够帮你解决DISCUZ X1.5下载附件名称前加本站名称所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: