织梦dedecms设置根据文章标题自动获取tag的方法_seo销售好做吗

黑帽SEO 次浏览

摘要:织梦dedecms设置根据文章标题自动获取tag的方法_seo销售好做吗_修改:\dede\action目录article_add_action.php文件在【//写入Tag索引】与【InsertTags($ds

织梦dedecms设置根据文章标题自动获取tag的方法_seo销售好做吗_修改:\dede\action目录article_add_action.php文件 在【//写入Tag索引】与【InsertTags($dsql,$tag,$arcID,0,$typeid,$arcrank)】之间插入: if($autokey==1) require_once(DEDEADMIN./../include/pub_splitword_ www.php ) $tag =

织梦dedecms设置根据文章标题自动获取tag的方法 
修改:\dede\action目录article_add_action.php文件 
在【//写入Tag索引】与【InsertTags($dsql,$tag,$arcID,0,$typeid,$arcrank);】之间插入: 
  
if($autokey==1){ 
    require_once(DEDEADMIN."/../include/pub_splitword_www.php"); 
    $tag = ""; 
    $sp = new SplitWord(); 
    $titleindexs = explode(" ",trim($sp->GetIndexText($sp->SplitRMM($title)))); 
    //$allindexs = explode(" ",trim($sp->GetIndexText($sp->SplitRMM(Html2Text($body)),200))); 
    if(/*is_array($allindexs) && */is_array($titleindexs)){ 
        foreach($titleindexs as $k){ 
            if(strlen($tag)>=50) break; 
            else $tag .= $k." "; 
        } 
        /*foreach($allindexs as $k){ 
            if(strlen($keywords)>=50) break; 
            else if(!in_array($k,$titleindexs)) $keywords .= $k." "; 
     }*/ 
    } 
    $sp->Clear(); 
    unset($sp); 
    //$tag = preg_replace("/

 本文内容主要是有关于::织梦dedecms设置根据文章标题自动获取tag的方法和[seo销售好做吗]

如果您有想法通过seo排名。来获得精准流量。请添加客服咨询我们。专业的团队+AI智能数据优化让您没有后顾之忧。

随机内容
// // // //