Discuz forum website title bar Powered by Discuz! How to remove or modify copyright information?

After we built the DZ Forum website, in order to beautify the website, we wanted to make the title bar Powered by Discuz! How to remove or modify it? Today Feifei will share with you that you must back up the website source code and database to a local or network disk before operation.

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
Discuz's copyright information exists in two places, one is the title bar and the other is the bottom. Generally, it is enough to modify the title bar for beautification. There is no need to delete the bottom one.

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
First we find the title bar file: /template/default/common/header_common.htm. Pay special attention not to confuse it with the header.htm file. They are two different files.

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
Open header_common.htm and quickly find the code:<!--{if !empty($navtitle)}-->$navtitle

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
In <title>the node, $navtitlethe variable represents the title of the website, and $_G['setting']['bbname']the variable represents the noun of the website. The website noun can be modified in our website [Management Center - Global - SEO Settings - Forum].

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
Powered by Discuz! It is the copyright information that comes with the source code. $_G['setting']['seohead']The variable is the title attached to the admin background, which can be filled in on the website [Management Center - Global - SEO Settings - Others - Other Header Information]. It is not required, I did not fill in this field.

Once you understand these variables, you will know how to modify them. Just change ($navtitle)the - after the website title and the $_G['setting']['bbname'] ! <!--{/if}-->Powered by Discuz after the website noun! Just delete or modify it.

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
Save after modification, and then force refresh the web page, you can see that the title bar is no longer Powered by Discuz!

Effect display:
Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
If you want to modify the bottom authorization information, the bottom authorization file is in /template/default/common/footer.htm

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
Open the file and quickly find the code:<div id="frt">

Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
This code is mainly composed of html tags such as p, a, and strong. The href= between the quotation marks is the text link. The $_G['setting']['version']variable represents the version number of Discuz. If you do not want to display the version number, you can delete this variable.<em>$_G['setting']['version']</em>

for example:

<div id="frt">
			<p>Powered by <strong><a href="https://www.fwqdby.com/" target="_blank">服务器大本营</a></strong> <!--{
    
    if !empty($_G['setting']['boardlicensed'])}--> <a href="https://license.discuz.vip/?pid=1&host=$_SERVER[HTTP_HOST]" target="_blank">Licensed</a><!--{
    
    /if}--></p>
			<p class="xs0">&copy; 2021-2023 <a href="http://wpa.qq.com/msgrd?v=3&uin=3062686717&site=qq:3062686717&menu=yes" target="_blank">联系飞飞</a></p>
		</div>

Effect display:
Discuz forum website title bar Powered by Discuz!  How to remove or modify copyright information?
Thank you for reading, Server Base Camp helps you become a more professional server administrator!

Guess you like

Origin blog.csdn.net/JUFENG_FEI/article/details/132922630