Home CMS Tutorial Discuz How to remove discuz copyright

How to remove discuz copyright

Feb 24, 2023 am 09:15 AM
discuz

How to remove discuz copyright: 1. Find and open the "header_common.htm" file and delete the "Powered by Discuz!" content; 2. Find and open the "footer.htm" file and delete "Powered" by ME" content.

How to remove discuz copyright

The operating environment of this tutorial: Windows 7 system, Discuz X3.2 version, DELL G3 computer

How to remove discuz copyright?

【Discuz】Remove the copyright information, modify the title bar and bottom

Although this article introduces how to remove the copyright information of Discuz! It disappeared without a trace, but it is still recommended to retain the copyright information of Discuz without affecting the visual effect of the forum. After all, it contributed to me such an excellent open source forum php project. The main purpose is to use the opportunity of thinking about removing copyright information to learn to modify the title bar and bottom of the Discuz! project.
Here we take the default template and the Discuz project without any modifications as an example.
Discuz!'s copyright information first exists in two places, one is the title bar and the other is the bottom.
First of all, the title bar file of Discuz is hidden in the file ..\template\default\common\header_common.htm. Be careful not to confuse it with the header.htm, it has nothing to do with it.
Find lines 6-16 inside as shown below:

In the title node, the $navtitle variable represents the title of the current page. $_G['setting']['bbname'] represents the noun of the current site. This can be changed in the admin background. Powered by Discuz! is the copyright information attached to Discuz. $_G['setting']['seohead'], this is the title you attach to the admin background.
As shown below, in Discuz's admin background->Global->SEO Settings->Others->Other header information, the information filled in is $_G['setting'][' seohead'] information.

After that, as shown below, in Global->Site Information, the site name you fill in will affect $_G['setting']['bbname '] value.
By the way, other settings of site information, website name, website URL, etc. will affect the information in the lower right corner.

In other words, if you want to take out the copyright information, the only modification you need is to change Powered by Discuz! to Powered by Me!, etc. Or delete it, and the result will be as shown below:

Of course, you can write some static text on the title node for convenience.
is followed by some meta tags on lines 9 to 16, which are used to describe the attributes of an HTML web page document, such as author, date and time, web page description, and keywords. They are only used to cooperate with some search engines. Find your forum better. Change it to whatever it is.
base href specifies the base URL for all relative URLs on the page, that is, all absolute paths../ will be replaced with the information here, and generally no modification is needed here.
is followed by Discuz’s footer modification, which also contains Discuz’s copyright information.
Discuz’s footer is hidden in ..\template\default\common\footer.htm
In lines 77-80, the div node with the id of frt, as shown in the following figure:

This is just a bunch of p, a, strong and other html tags. Please feel free to modify it in this tag with the id of frt, $_G['setting'] ['version'] This variable represents the current version number of Discuz.
For example, change to the following code:
		<div id="frt">
			<p>Powered by <strong>ME</strong>
			<p class="xs0">&copy; 1900-2100</p>
		</div>
Copy after login
will get the following effect:

当然,还是那句话,不建议这么做。毕竟人家怎么无私奉献出一个开源的php论坛出来不容易。
至于有人上面的Discuz友情链接怎么去掉?这里不用改代码,直接在后台里面->运营->友情链接中,该怎么改就怎么改,可以直接关闭。

最后在右下角的信息修改,这里上面说过已经怎么在admin后台那修改。但你可以直接改代码。写出更多东西。
就紧贴上面的58-76行id为flk的div里面。如下图所示:

比如我不想显示当前站点的名称,可以直接将第63行有关$_G['setting']['sitename']这个变量的a标签直接弄走。修改之后如下图所示,加粗的站点名称不见了。

至此,整个Discuz的论坛的所有版权信息全部去掉。
因为整个Discuz论坛的所有页面都在引用header_common与footer两个页面,因此这样一修改,整个论坛都改好了。
同时说一句,整个footer.htm里面的代码不一定要带版权信息的,你可以完全可以换成自己的里面,空空是也也可以但一定要保留
这三个标签,这与上面拼接的页面形成呼应关系的。
也就是说,如果想自己写footer.htm应该这样写:
</div>
<!--你要写的内容-->
</body>
</html>
Copy after login
才能与上面的页面形成呼应。
大家也留意到,用Dreamweaver修改的时候会不停地提示错误警告,这主要是footer.htm与header_common.htm两个页面根本就不是一个完整的html页面。

Discuz的代码其实写得并不怎么样的,如果没有网上的修改资料,根本就看不懂里面的代码。因为其很多页面,可能是怕程序猿能轻易修改的缘故,或者历次开发,经过多人修改的缘故,都一一割裂开来,但不可否认这是一个非常不错的php的工程。

相关推荐:《discuz教程

The above is the detailed content of How to remove discuz copyright. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Discuz background login problem solution revealed Discuz background login problem solution revealed Mar 03, 2024 am 08:57 AM

The solution to the Discuz background login problem is revealed. Specific code examples are needed. With the rapid development of the Internet, website construction has become more and more common, and Discuz, as a commonly used forum website building system, has been favored by many webmasters. However, precisely because of its powerful functions, sometimes we encounter some problems when using Discuz, such as background login problems. Today, we will reveal the solution to the Discuz background login problem and provide specific code examples. We hope to help those in need.

What is Discuz? Definition and function introduction of Discuz What is Discuz? Definition and function introduction of Discuz Mar 03, 2024 am 10:33 AM

"Exploring Discuz: Definition, Functions and Code Examples" With the rapid development of the Internet, community forums have become an important platform for people to obtain information and exchange opinions. Among the many community forum systems, Discuz, as a well-known open source forum software in China, is favored by the majority of website developers and administrators. So, what is Discuz? What functions does it have, and how can it help our website? This article will introduce Discuz in detail and attach specific code examples to help readers learn more about it.

A must-have for Discuz users! Comprehensive analysis of renaming props! A must-have for Discuz users! Comprehensive analysis of renaming props! Mar 12, 2024 pm 10:15 PM

A must-have for Discuz users! Comprehensive analysis of renaming props! In the Discuz forum, the name change function has always received much attention and demand from users. For some users who need to change their name, name change props can easily modify the user name, and this is also an interesting way of interaction. Let’s take an in-depth look at the renaming props in Discuz, including how to obtain them, how to use them, and solutions to some common problems. 1. Obtain name-changing props in Discuz. Name-changing props are usually purchased through points or the administrator

What should I do if I encounter an incorrect Discuz password? Quick solution sharing! What should I do if I encounter an incorrect Discuz password? Quick solution sharing! Mar 03, 2024 am 09:33 AM

What should I do if I encounter an incorrect Discuz password? Quick solution sharing! Discuz! It is a very popular forum program that provides users with a platform for convenient communication. Using Discuz! When accessing a forum, sometimes you may encounter an incorrect password, which may cause users to be unable to log in and use the forum normally. Well, meet Discuz! When the password is wrong, how should we quickly solve the problem? Some solutions will be shared below, with specific code examples provided for reference. 1. Check whether the password

Discuz background login failed? Teach you how to solve it easily! Discuz background login failed? Teach you how to solve it easily! Mar 02, 2024 pm 06:03 PM

Discuz background login failed? Teach you how to solve it easily! As Discuz, as a popular forum platform, is widely used in website construction and management, sometimes you will encounter backend login failures, which is troubling. Today we will discuss the issues that may cause Discuz backend login failure, provide some solutions, and attach specific code examples. I hope this article can help webmasters and developers who encounter similar problems. 1. Troubleshooting is to solve the problem of Discuz background login failure.

Discuz Editor: an efficient post layout tool Discuz Editor: an efficient post layout tool Mar 10, 2024 am 09:42 AM

Discuz Editor: An efficient post layout tool. With the development of the Internet, online forums have become an important platform for people to communicate and share information. In the forum, users can not only express their opinions and ideas, but also discuss and interact with others. When publishing a post, a clear and beautiful format can often attract more readers and convey more accurate information. In order to facilitate users to quickly type and edit posts, the Discuz editor came into being and became an efficient post typesetting tool. Discu

Detailed explanation of Discuz registration process: allowing you to easily modify personal information Detailed explanation of Discuz registration process: allowing you to easily modify personal information Mar 13, 2024 pm 12:21 PM

"Detailed Explanation of Discuz Registration Process: Allowing you to easily modify personal information, specific code examples are required" Discuz is a powerful community forum program that is widely used in various websites. It provides a wealth of user registration and personal information modification. functions and interfaces. This article will introduce you to Discuz's registration process in detail and provide specific code examples to help you easily customize and modify your personal information. 1. User registration process In Discuz, user registration is one of the important functions of the site. The smoothness of the registration process and

Detailed explanation of steps to modify Discuz domain name Detailed explanation of steps to modify Discuz domain name Mar 11, 2024 am 11:00 AM

Detailed explanation of the steps to modify the Discuz domain name. Specific code examples are required. With the development and operation of the website, sometimes we need to modify the domain name of the Discuz forum. This may be due to brand change, website SEO optimization, or other reasons. No matter what the reason is, modifying the Discuz domain name is a process that requires careful operation. Today we will introduce the steps of modifying the Discuz domain name in detail and provide specific code examples. Step 1: Back up data. Before modifying the domain name, you must first ensure that the website

See all articles