Modify discuz! X2 title, bottom, and archiver page copyright information

Source: Internet
Author: User

 Copyright in title
In the original discuz X1 version, remove "powered by discuz!" from the title !" The Copyright logo is easy. You only need to modify the public file in the template file header and set the ['bbname']-
<! -- {/If} -->Powered by discuz!</Title> remove the red part.
However, discuz X2 directly converts-powered by discuz! "-" Is placed in the Variable. Therefore, after the title is deleted, there will be a small-tail after a sentence, which is unfriendly to the search engine. Therefore, there is also a good solution, that is:
Open the \ template \ Default \ common \ header_common.htm file and find <title> <! -- {If! Empty ($ navtitle)} --> $ navtitle-<! -- {/If} --> <! -- {If empty
($ Nobbname)} --> $ _ g ['setting'] ['bbname']-<! -- {/If} -->
Powered by discuz!</Title>
Replace "powered by discuz !" Change the string to"{Lang secondtitle}".

Then open source/Language/lang_template.php. At the end of the variable, that is, the Directory of the entire array, the content in quotation marks is added according to the previous format"'Secondtitle' => 'website or forum name ',".
Update the cache.

Note: I cannot try the above method. My method is to directlyPowered by discuz!Replace it with a fixed string without having to get any variables or the like.

Copyright in the bottom navigation bar
Open the \ template \ Default \ common \ foot.htm File
Find <p> powered by <strong> <a href = "http://www.discuz.net" target = "_ blank"> discuz! </A> </strong> <em> $ _ g ['setting'] ['version'] </em> <! -- {If! Empty ($ _ g ['setting'] ['boardlicensed '])} --> <a href = "http://license.comsenz.com /? PID = 1 & host = $ _ server [http_host] "target =" _ blank "> licensed </a> <! -- {/If} --> </P> <p
Class = "xs0"> & copy; 2001-2010 <a href = "http://www.comsenz.com" target = "_ blank"> comsenz Inc. </a> </P>
Delete all.

Or add your ownCodeFor example:
<P> 24-hour service hotline: 0000-00000000 </P>
<P class = "xs0"> copyright & copy; 2011 ***. com Inc. all rights reserved. <a href = "http: // www. ***. COM/"target =" _ blank "> ** company </a> All Rights Reserved </P>
</Div>

Copyright of the archiver page
Modify\ Source \ archiver \ common \ footer. phpYou can.

Copyright of the search page
ModifyTemplate/default/search/footer.htmYou can.

 

 

 

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.