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 the 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:
ME
©1900-2100
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 also but must retain these three labels, this and the above splicing page form a relationship.
In other words, if you want to write your own footer.htm should write:
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.
The above describes the removal of copyright information, the title bar and the bottom of the changes, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.