In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to modify the keyword length of Weaving Dream dede. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
How does Dream Weaving dede modify keyword length?
In the production of the website, very often, some default settings of dede may not meet our requirements, just like the length of the dede keyword, which can not meet our requirements. If we want to modify the length we need, we need to modify some php files and databases.
Dede file modifies the default keyword length
Step 1: locate and open the article_edit.php and article_add.php files in the dede background directory.
Computer maintenance Technology Network Note: if it is to modify the key words of the topic, you need to modify the spec_add.php and spec_edit.php files.
Step 2: search the file for "keywords" and find "$keywords = trim (cn_substrR ($keywords, 60));" this line of code, change to $keywords = $keywords; and save.
Database keyword default length modification
By default, dede's keywords keyword database type is char and the length is only 20, so we need to change this database field type to varchar length also to 200.
Step 1: successfully log in to the dede background, or connect to the mysql database using a tool software or something.
Step 2: locate the dede database and execute the following code.
The code is as follows:
ALTER TABLE dede_archives MODIFY COLUMN keywords VARCHAR; the above SQL statement indicates that dede_archives is the name of the dede table. Keywords is the name of the field to be modified. ALTER TABLE table name MODIFY COLUMN field name data type; on weaving dream dede how to modify the keyword length is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.