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?

藏色散人
Release: 2019-12-02 09:57:29
Original
1904 people have browsed it

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); 
}
Copy after login

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); 
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template