In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the DEDECMS document keyword related article BUG modification method, the article is very detailed, has a certain reference value, interested friends must read it!
DEDECMS document keywords related to the article BUG how to change?
When using DEDE, when you use the function of "keyword related articles (article content keyword replacement)", do you find that it does not achieve the desired results? even if you are in the management background system settings-performance parameters: "use keywords related articles:" Select is, after generating the article, you will also find that the keywords in the article content have not been replaced with links at all
After my inspection, I found a solution. It may be the mistake of the DEDE technician. A judgment variable is written incorrectly. The variable used by the website management background to control the switch of this function is: cfg_keyword_like, but the variable that controls this function in the core tag file arc.archives.class.php of DEDE is: cfg_keyword_replace. In this case, it will definitely not be controlled.
Solution:
Open the / include/arc.archives.class.php file, find line 197, and change $GLOBALS ['cfg_keyword_replace'] = =' Y' to $GLOBALS ['cfg_keyword_like'] = =' Y'
It can be done.
DEDE5.1 related articles ~ ultra-simple modification
DEDE5.1 related articles ~ Ultra-simple modify inc_pubtag_make.php
Line 200 or so
$ctag- > GetAtt ("keyword"), comment out
Change to $kws
If (! empty ($thisObj- > maintable)) $maintable=$thisObj- > TempletsFile; else$maintable=''
This is followed by the following.
/ / modify if ($ctag- > GetAtt ("keyword")! = ") {if ($ctag- > GetAtt (" keyword ")! =" keywords ") $kws=$ctag- > GetAtt (" keyword "); else$kws=";} else {$kws=$thisObj- > Fields ['keywords']; above are all the contents of the revision method of BUG related to DEDECMS document keywords, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.