Home >Backend Development >PHP Tutorial >How to remove bottom information in Discuz?
How to remove bottom information in Discuz?
Discuz is one of the well-known forum systems in China. Many websites use Discuz to build forum communities. In the process of using Discuz, sometimes we may want to remove the bottom information to make the forum more concise and personalized. The following will introduce how to remove the bottom information in Discuz and provide specific code examples.
First, enter the Discuz backend management system, find the "Template Management" option, and click "Template Management" to enter the template management page. In the template management page, select the template to be edited, usually the default template. Find the template file where the relevant code for the bottom information is located, usually the footer.htm file.
Open the footer.htm file and find the code part containing the bottom information, which is usually a piece of HTML code, similar to:
<div class="footer"> © 2021 Discuz! 版权所有 </div>
To remove the bottom information, you can directly delete the code part containing the bottom information . If you want to retain part of the bottom information, you can modify or comment out the corresponding code as needed. For example, if you only want to keep the copyright information, you can modify the code to:
<div class="footer"> © 2021 Discuz! 版权所有 </div>
In addition, some Discuz themes may use variables of the bottom information to output information. In this case, you can control the bottom information through template variables. show. Judgment conditions can be added to the footer.htm file to control the display of bottom information, for example:
<div class="footer"> <!--{if !$GLOBALS['hidden_footer_info']}--> © 2021 Discuz! 版权所有 <!--{/if}--> </div>
In the above code, $GLOBALS['hidden_footer_info'] is a global variable, by controlling the value of this variable Determines whether to display bottom information.
In short, to remove the bottom information in Discuz, you need to edit the template file and delete or modify the relevant code. Through simple modifications, the forum interface can be made more refreshing and personalized. Hope the above content is helpful to you.
(Note: The article is for reference only, please make a backup and operate with caution during specific operations)
The above is the detailed content of How to remove bottom information in Discuz?. For more information, please follow other related articles on the PHP Chinese website!