"Discuz" Remove copyright information, title bar and bottom Modification

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 PHP project. The main point is to use thinking to remove copyright information, learn to modify the Discuz! Project title bar and bottom. Here is an example of a discuz project with default templates and no modifications. Discuz! 's copyright information is first present with two places, one is the title bar, and the other is the bottom. First, Discuz's title bar file is hidden in the. \template\default\common\header_common.htm This file inside, be careful not to confuse with that header.htm, the slightest relationship is not. Find the 6-16 lines inside as shown:
In the title node, $navtitle variable represents the title of the current page, $_g[' setting ' [' Bbname '] represents the current site's noun, which 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 the Discuz admin background, global->seo settings and other header information, the information is filled out is $_g[' setting ' [' seohead '] information.
Then, for example, in the global site information, you fill in the site name, 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 take out the copyright information, the only thing you need to change is to change powered by discuz! to powered by me!, or delete it, and get the effect as:
Of course, you can write some static text on the title node for portability. Then there are some meta tags on line 9th to 16th that describe the properties of an HTML page document, such as author, date and time, page description, keywords, just 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, that is, all absolute paths. /will be replaced with the information here, there is generally no need to modify the. After that is Discuz's footer modification, here also has the discuz copyright information. Discuz's footer is hidden in the. \template\default\common\footer.htm in line 77-80, that is the DIV node with ID frt, as shown in:
Here is a bunch of p, a, strong and other HTML tags, in this id frt tag, please modify, $_g[' setting ' [' Version '] This variable represents the Discuz current version number. For example, change to the following code:
<div id= "Frt" ><p>powered by <strong>me</strong><p class= "Xs0" >&copy; 1900-2100</p></div>
You get the following effect:

Of course, it is not recommended to do so. 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, you can directly close.
Finally in the bottom right corner of the information modification, here said that already how in the admin background that modification. But you can change the code directly. Write more things. Close to the top of the 58-76 line ID flk div inside. As shown in the following:
For example, I do not want to display the name of the current site, you can directly take the 63rd row about $_g[' setting ' [' sitename '] This variable of the a tag directly away. After the modification as shown, the bold site name is missing.
At this point, all copyright information for the entire Discuz forum is removed. Because all the pages of the Discuz forum are referring to the two pages of Header_common and footer, the whole forum has been changed as a result of this modification. At the same time, the whole footer.htm inside the code does not have to take the copyright information, you can completely replace your own inside, empty is also can but must keep </div></body>
</div><!--What you want to write--></body>
To be able to interact with the page above.
It is also noted that when using Dreamweaver changes will not stop to prompt error warning, this is mainly footer.htm and header_common.htm two pages is not a complete HTML page at all. Discuz code is actually not very well written, if there is no online modification information, can not understand the code inside. Because of its many pages, may be afraid of the program ape can be easily modified for the sake of, or all the development, after many people modified for the sake of a separate, but admittedly this is a very good PHP project.

"Discuz" Remove copyright information, title bar and bottom Modification

Related Article

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.