ud3 发表于 2024-12-28 10:30

discuz网站升级需要修改的文件

修改页面头部版权
/template/default/common/header_common.htm

第6行
[*]Powered by Discuz! 修改为   你要改的地方

修改页面底部版权
/template/default/common/footer.htm                                             
第75行
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em>$_G['setting']['version']</em><!--{if !empty($_G['setting']['boardlicensed'])}--> <a href="http://license.comsenz.com/?pid=1&host=$_SERVER" target="_blank">Licensed</a><!--{/if}--></p>
                        <p class="xs0">Copyright © 2001-2021, Tencent Cloud.</p>将里面的链接地址修改

搜索页底部版权修改                                 
/template/default/search/footer.htm
第32行
<em>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em>$_G['setting']['version']</em><!--{if !empty($_G['setting']['boardlicensed'])}--> <a href="http://license.comsenz.com/?pid=1&host=$_SERVER" target="_blank">Licensed</a><!--{/if}--></em>
      <em>Copyright © 2001-2021, Tencent Cloud.</em>手机版页面头部版权修改
template\default\mobile\common/header.htm
第6行
Powered by Discuz! 修改为    你要改的
去掉贴内分享到QQ群及好友
template/default/forum/viewthread_node.htm

文件删除第315行,如下代码:
<!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
                                                <div class="tshare cl">
                                                      <b>{lang viewthread_share_to}: </b>
                                                      <!--{hook/viewthread_share_method}-->
                                                </div>
                                        <!--{/if}-->去掉每个页面右键查看源码时可查看到DZ版权的部分如下图


/template/default/common/header.htm   第18、19、20行下面代码部分(Discuz! X3.4 R20220406 UTF-8无需修改)

/template/default/common/header_common.htm   删除第11、12、13行下面代码部分
<meta name="generator" content="Discuz! $_G['setting']['version']" />
      <meta name="author" content="Discuz! Team and Comsenz UI Team" />
      <meta name="copyright" content="2001-2021 Tencent Cloud." />删除根目录下文件

LICENSE
readme.html

修改robots.txt


后台登录页admin.php

后台登陆页面说明
/source/language/lang_admincp_login.php
修改30行
'login_tips' => '此页面是**管理页面,如果您误入此页面, <a href="https://www.****">请点击此处返回首页</a>。',底部版权修改

/source/admincp/admincp_login.php
91行修改为
   <p>Powered by <a href="http://www.*******.com/">*****</a> $version </p>
                        <p>Copyright © 2017, *****.com.</p>
页: [1]
查看完整版本: discuz网站升级需要修改的文件