"Discuz" Removal of copyright information, title bar and bottom changes

Source: Internet
Author: User

Although this article is to introduce how to discuz! copyright information, but it is recommended to not affect the forum visual effects, the preservation of discuz copyright information, after all, it gave me a so excellent open source forum Phpproject. The main is to use thinking to remove copyright information opportunities, learn to change the Discuz!project title bar and the bottom.

Here is an example of the default template, which does not make any changes to the discuzproject.

Discuz! 's copyright information is first present with two places. One is the title bar, one is the bottom. First, Discuz's title bar file is hidden in the. \template\default\common\header_common.htm this file in the face, be careful not to be confused with that header.htm, the slightest relationship is not. Find the 6-16 rows inside for example with what you see:
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 Discuz attached to the copyright information. $_g[' Setting ' [' Seohead '], this is the title you attached to the admin backstage. For example, in Discuz admin background, global->seo settings, other header information, and so on. The information that was filled in. is the message of $_g[' setting ' [' Seohead '].
After, for example with. In the Global and Web site information, the name of the website you fill in will affect the value of $_g[' setting ' [' Bbname ']. Here also by the way, in the site information other settings, site name, site URL, etc. will affect the bottom right corner of the information.
In other words, if you want to remove the copyright information, the only thing you need to change is to change powered by discuz! to powered by me!. Or delete, get the effect for example with:
Of course, you can write some static text on the title node for portability. This is followed by some meta tags in line 9th to 16th to describe the properties of an HTML Web document, such as author, date and time, description of the Web page, keywords, but to match some search engines to better find your forum.

It's nothing to change.

Base href Specifies the base URL for all relative URLs on the page, which is the full absolute path. /will be replaced with the information here, there is generally no need to change. After that is Discuz's footer changes, here the same has discuz copyright information. Discuz's footer is hidden in the. \template\default\common\footer.htm in line 77-80. The ID is frt in the div node, for example, as seen in:
Here is just a bunch of p, a, strong and other HTML tags, in this id frt tag, please change, $_g[' setting ' [' Version '] This variable represents the current version 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>
The results are as follows:

Of course. It's still the same sentence, not recommended. After all, how selfless dedication of an open source PHP forum come out not easy. As for someone above the discuz friendship link how to remove? There is no need to change the code, directly in the background and operations---links, how to change how to change, can be directly closed.


Finally in the bottom right corner of the information changes, here said that already how in the admin background that change. But you can change the code directly. Write a lot of other things. Close to the top of the 58-76 line ID flk div inside. For example, as seen in:
For example, I don't want to display the name of the current site. Can directly take the 63rd line about $_g[' setting ' [' sitename '] This variable of the a tag directly away. After the change, for example, the name of the website is missing.


At this point, all copyright information for the entire Discuz forum is removed. Since all pages of the Discuz forum are referring to the Header_common and footer two pages, such a change. The whole forum has been changed. At the same time, the whole footer.htm code does not have to carry the copyright information, you can completely replace your own inside, empty is also able to but must keep </div></body>
</div><!--What you want to write--></body>
Talent and the above page form the echo.
It is also noted that when using Dreamweaver changes will not stop to prompt the error warning, this is mainly footer.htm and header_common.htm two pages is not a complete HTML page at all. Discuz's code is actually not very well written, assuming there are no online changes to the data. I can't read the code inside. Because of its very many pages, may be afraid of the programmer can easily change the reason, or the previous development, after many people change the reason. are fragmented, but there is no denying that this is a very good PHP project.

"Discuz" Removal of copyright information, title bar and bottom changes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.