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?

藏色散人
藏色散人Original
2019-12-02 09:57:291889browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn