久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動(dòng):電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價(jià)!!!
當(dāng)前位置:主頁 > 網(wǎng)站建設(shè) > 織夢(mèng)DEDECMS采集沒有自動(dòng)生成摘要和關(guān)鍵字的解決

織夢(mèng)DEDECMS采集沒有自動(dòng)生成摘要和關(guān)鍵字的解決

時(shí)間:2023-05-26 14:05:26 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 建站小能手

導(dǎo)讀:建站問題建站問題織夢(mèng) 5.6采集到了內(nèi)容,可沒有自動(dòng)生成摘要和關(guān)鍵字,關(guān)鍵字和摘要都是空的。 可能很多人都遇到了和我一樣的問題,在論壇實(shí)在沒找到好的解決辦法,就自己動(dòng)手去改改文網(wǎng)站建設(shè)多少錢企業(yè)網(wǎng)站建設(shè)。

網(wǎng)站建設(shè)多少錢企業(yè)網(wǎng)站建設(shè)織夢(mèng) 5.6采集到了內(nèi)容,可沒有自動(dòng)生成摘要和關(guān)鍵字,關(guān)鍵字和摘要都是空的。 可能很多人都遇到了和我一樣的問題,在論壇實(shí)在沒找到好的解決辦法,就自己動(dòng)手去改改文件。廢話不多說了。 下面是我的解決辦法: 1、修改 include/dedecollection.class.php //自 […]

織夢(mèng)5.6采集到了內(nèi)容,可沒有自動(dòng)生成摘要和關(guān)鍵字,關(guān)鍵字和摘要都是空的。 可能很多人都遇到了和我一樣的問題,在論壇實(shí)在沒找到好的解決辦法,就自己動(dòng)手去改改文件。廢話不多說了。 下面是我的解決辦法:

1、修改 include/dedecollection.class.php

//自動(dòng)分析關(guān)鍵字和摘要   preg_match("/<meta[\s]+name=['\"]keywords['\"] content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr);   preg_match("/<meta[\s]+content=['\"](.*)['\"] name=['\"]keywords['\"]/isU",$this->tmpHtml,$inarr2);   if(!isset($inarr[1]) && isset($inarr2[1]))   {   $inarr[1] = $inarr2[1];   } 

用下面一段代碼替換上面的

seo網(wǎng)站優(yōu)化軟件

//自動(dòng)分析關(guān)鍵字和摘要   preg_match("/<meta[\s]+name=['\"]keywords['\"] content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr);   preg_match("/<meta[\s]+content=['\"](.*)['\"] name=['\"]keywords['\"]/isU",$this->tmpHtml,$inarr2);   preg_match("/<meta[\s]+name=keywords content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr3);   if(!isset($inarr[1]) && isset($inarr2[1]))   {   $inarr[1] = $inarr2[1];   }   if(!isset($inarr[1]) && isset($inarr3[1]))   {   $inarr[1] = $inarr3[1];   } 

改了上面的, 還有另一個(gè)地方需要修改的

preg_match("/<meta[\s]+name=['\"]description['\"] content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr);   preg_match("/<meta[\s]+content=['\"](.*)['\"] name=['\"]description['\"]/isU",$this->tmpHtml,$inarr2);   if(!isset($inarr[1]) && isset($inarr2[1]))   {   $inarr[1] = $inarr2[1];   } 百度seo網(wǎng)站優(yōu)化

用下面的代碼替換掉上面的:

preg_match("/<meta[\s]+name=['\"]description['\"] content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr);網(wǎng)站建設(shè)哪家好   preg_match("/<meta[\s]+content=['\"](.*)['\"] name=['\"]description['\"]/isU",$this->tmpHtml,$inarr2);   preg_match("/<meta[\s]+name=description content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr3);   if(!isset($inarr[1]) && isset($inarr2[1]))   {   $inarr[1] = $inarr2[1];   }   if(!isset($inarr[1]) && isset($inarr3[1]))   {   $inarr[1] = $inarr3[1];   } 

關(guān)鍵詞標(biāo)簽: CMS 解決辦法 自動(dòng)生成

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-26 ,文章織夢(mèng)DEDECMS采集沒有自動(dòng)生成摘要和關(guān)鍵字的解決主要講述解決辦法,自動(dòng)生成,CMS網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_10214.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計(jì)制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 仪征市| 蒙阴县| 全州县| 澄迈县| 静宁县| 柞水县| 沅江市| 荥阳市| 湟中县| 鱼台县| 偏关县| 新野县| 保山市| 丹凤县| 长治市| 海城市| 同德县| 磴口县| 宜黄县| 宾川县| 八宿县| 洮南市| 虎林市| 蕉岭县| 馆陶县| 万盛区| 从化市| 巫溪县| 平凉市| 常宁市| 潮州市| 资阳市| 柘城县| 沾化县| 历史| 玛曲县| 文山县| 卢湾区| 大城县| 福清市| 建昌县|