Discuz論壇標題和底部去掉版權(quán)信息實例講解
需求:
一、標題:打開template/default/common/header_common.htm
文件,里面的代碼如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" /> <!--{if $_G['config']['output']['iecompatible']}--><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE{$_G['config']['output']['iecompatible']}" /><!--{/if}--> <title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}-->Powered by Discuz!</title> $_G['setting']['seohead'] <meta name="keywords" content="{if !empty($metakeywords)}{echo dhtmlspecialchars($metakeywords)}{/if}" /> <meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" /> <meta name="generator" content="Discuz! $_G['setting']['version']" /> <meta name="author" content="Discuz! Team and Comsenz UI Team" /> <meta name="copyright" content="2001-2017 Comsenz Inc." /> <meta name="MSSmartTagsPreventParsing" content="True" /> <meta http-equiv="MSThemeCompatible" content="Yes" /> <base href="{$_G['siteurl']}" rel="external nofollow" /> <!--{csstemplate}--> <script type="text/javascript">var STYLEID = '{STYLEID}', STATICURL = '{STATICURL}', IMGDIR = '{IMGDIR}', VERHASH = '{VERHASH}', charset = '{CHARSET}', discuz_uid = '$_G[uid]', cookiepre = '{$_G[config][cookie][cookiepre]}', cookiedomain = '{$_G[config][cookie][cookiedomain]}', cookiepath = '{$_G[config][cookie][cookiepath]}', showusercard = '{$_G[setting][showusercard]}', attackevasive = '{$_G[config][security][attackevasive]}', disallowfloat = '{$_G[setting][disallowfloat]}', creditnotice = '<!--{if $_G['setting']['creditnotice']}-->$_G['setting']['creditnames']<!--{/if}-->', defaultstyle = '$_G[style][defaultextstyle]', REPORTURL = '$_G[currenturl_encode]', SITEURL = '$_G[siteurl]', JSPATH = '$_G[setting][jspath]', CSSPATH = '$_G[setting][csspath]', DYNAMICURL = '$_G[dynamicurl]';</script> <script type="text/javascript" src="{$_G[setting][jspath]}common.js?{VERHASH}"></script> <!--{if empty($_GET['diy'])}--><!--{eval $_GET['diy'] = '';}--><!--{/if}--> <!--{if !isset($topic)}--><!--{eval $topic = array();}--><!--{/if}-->
1、原來的標題代碼為:
<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>
注意:一定記著把$navtitle后面的“ - ”去掉,要不然標題處還是會出現(xiàn) - ,例如下圖:
2、原來的描述代碼為:
<meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}{if empty($nobbname)},$_G['setting']['bbname']{/if}" />
修改為:
<meta name="description" content="{if !empty($metadescription)}{echo dhtmlspecialchars($metadescription)} {/if}" />
二、底部:找到底部的模板文件template/default/common/footer.htm
或者你模板文件對應的common/footer.htm
,搜索“Powered by
”,找到相關代碼行刪掉即可
<div id="frt"> <p>Powered by <strong><a rel="external nofollow" target="_blank">Discuz!</a></strong> <em>$_G['setting']['version']</em><!--{if !empty($_G['setting']['boardlicensed'])}--> <a rel="external nofollow" target="_blank">Licensed</a><!--{/if}--></p> <p class="xs0">© 2001-2017 <a rel="external nofollow" target="_blank">Comsenz Inc.</a></p> </div>
三、修改完成后,登錄后臺更新一下緩存即可,最終效果如下圖,是不是非常完美。
到此這篇關于Discuz論壇標題和底部去掉版權(quán)信息實例講解的文章就介紹到這了,更多相關Discuz論壇標題和底部去掉版權(quán)信息內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
PHP實現(xiàn)Redis單據(jù)鎖以及防止并發(fā)重復寫入
本篇文章給大家分享了PHP實現(xiàn)Redis單據(jù)鎖以及如何防止并發(fā)重復寫入的方法,對此有需要的朋友參考學習下。2018-04-04Zend Framework開發(fā)入門經(jīng)典教程
這篇文章主要介紹了Zend Framework開發(fā)入門知識點,詳細介紹了Zend Framework開發(fā)的zend源碼下載,環(huán)境配置,基本組件使用與相關注意事項等,需要的朋友可以參考下2016-03-03iis 7下安裝laravel 5.4環(huán)境的方法教程
最近想嘗試體驗下laravel框架,所以自己嘗試在iis 7下安裝laravel 5.4環(huán)境,雖然遇到些問題,但最終都解決了,所以下面這篇文章主要給大家介紹了在iis 7下安裝laravel 5.4環(huán)境的方法教程,需要的朋友可以參考下。2017-06-06CodeIgniter配置之routes.php用法實例分析
這篇文章主要介紹了CodeIgniter配置之routes.php用法,結(jié)合實例形式分析了routes.php中常用配置參數(shù)的含義及具體使用技巧,需要的朋友可以參考下2016-01-01Yii2實現(xiàn)中國省市區(qū)三級聯(lián)動實例
本篇文章主要介紹了Yii2實現(xiàn)中國省市區(qū)三級聯(lián)動實例,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-02-02