Discuz X2.5_完美去掉论坛标题和底部Powered by Discuz!

品味人生 • 发布于 2019-02-01 21:37:02

这个家伙很害羞,不想介绍自己!

看来技术发展的够快的
闲话少说寻找去掉标题里“Powered by Discuz”和页面底部"Powered by Discuz X2.5"的方法,其实页面底部的倒无所谓,就是标题里的对搜索引擎不好,其解决方法如下:

先修改header头部的title,找header_common.html的位置,大约在第六行

 

原来的代码

<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz!</title>

修改为

<title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] <!--{/if}--></title>

一定记着把 - 去掉 要不你的浏览器在标题处还是出现 - 这个问题麻烦了我好几天呢

改后的只留下 论坛的名称就行了,其名称可在后台 全局 seo 设置里面修改你想要的信息

 


  • 修改footer尾部的去掉Powered by Discuz! X2.5


在footer.htm中大约在76行寻找

原来代码

<div id="frt">
<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[HTTP_HOST]" target="_blank">Licensed</a><!--{/if}--></p>
<p>? 2001-2012 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div>

修改后

<div id="frt">
<p>Powered by <strong><a href="http://www.fenxianglianmeng.com" target="_blank">$_G['setting']['bbname']</a></strong>
<!--{if !empty($_G['setting']['boardlicensed'])}-->
<a href="http://license.comsenz.com/?pid=1&host=$_SERVER[HTTP_HOST]" target="_blank">Licensed</a><!--{/if}--></p>
<p>? 2001-2012 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div>