Home >CMS Tutorial >DEDECMS >What should I do if the frequency of keywords in the Dreamweaver document cannot be modified?
What should I do if the frequency of keywords in the Dreamweaver document cannot be modified?
Open dede/article_keywords_main.php and find the following code:
//更新链接网址 if($rpurl!=$rpurlold) { $query1 = "UPDATE `cn_keywords` SET rpurl='$rpurl' WHERE aid='$aid' "; $dsql->ExecuteNoneQuery($query1); }
Change to:
//更新链接网址、频率 $rank = ${'rank_'.$aid}; if($rpurl!=$rpurlold) { $query1 = "UPDATE `cn_keywords` SET rpurl='$rpurl',rank='$rank' WHERE aid='$aid' "; $dsql->ExecuteNoneQuery($query1); } else { $query1 = "UPDATE `cn_keywords` SET rank='$rank' WHERE aid='$aid' "; $dsql->ExecuteNoneQuery($query1); }
After saving, you can modify the frequency in the background.
Recommended study: 梦Weavercms
The above is the detailed content of What should I do if the frequency of keywords in the Dreamweaver document cannot be modified?. For more information, please follow other related articles on the PHP Chinese website!