- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
最近客戶反應,論壇門戶的 Keyword(關鍵詞) 和 Description(描述)都只剩下門戶倆字了。原來 Discuz 對游客屏蔽了關鍵詞與描述。雖然說用管理員賬號登陸后,可以正常顯示了。不過很難說蜘蛛或Robot是不是可以真正能獲取。所以為了收錄,還是改回來吧。具體方法為:
找到文件“ source/class/helper/helper_seo.php ”這個文件
搜索:
代碼如下:
if($descriptiontext && (isset($_G['makehtml']) || CURSCRIPT == 'forum' || IS_ROBOT || $_G['adminid'] == 1)) { $seodescription = helper_seo::strreplace_strip_split($searchs, $replaces, $descriptiontext); } if($keywordstext && (isset($_G['makehtml']) || CURSCRIPT == 'forum' || IS_ROBOT || $_G['adminid'] == 1)) { $seokeywords = helper_seo::strreplace_strip_split($searchs, $replaces, $keywordstext); }
修改為:
代碼下:
if($descriptiontext) { $seodescription = helper_seo::strreplace_strip_split($searchs, $replaces, $descriptiontext); } if($keywordstext) { $seokeywords = helper_seo::strreplace_strip_split($searchs, $replaces, $keywordstext); }
OK,最后登出后,再用游客身份查看源代碼,已經可以看到 Description 和 Keyword 了,在用站長SEO工具測試一下,也OK了。。
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP