亚洲一区2区三区|2020国产无码|日本视频9999|欧美三区四区四区区|超碰小说人人爽亚洲|国产精品3P电影|亚洲综合无码色区|久久tlri深 射|在线免费有码视频|久艹精品中文在线

玩改車

標(biāo)題: Discuz X2.5 keywords和description只能看到“首頁”的解決辦法 [打印本頁]

作者: 書生    時(shí)間: 2012-4-21 23:04
標(biāo)題: Discuz X2.5 keywords和description只能看到“首頁”的解決辦法
Discuz X2.5和Discuz X2都有同樣的問題,就是在用戶未登錄的時(shí)候,看到的keywords和description都是“首頁”,其實(shí),搜索引擎收錄的時(shí)候,是能獲取到這兩個(gè)值的,不用擔(dān)心。只是,這樣看起來不夠友好,所以,我們需要修改一下。:)
找到這個(gè)文件:source/class/helper/helper_seo.php
把以下代碼:
  1. if($descriptiontext && (CURSCRIPT == 'forum' || IS_ROBOT || $_G['adminid'] == 1)) {
  2.     $seodescription = helper_seo::strreplace_strip_split($searchs, $replaces, $descriptiontext);
  3. }
  4. if($keywordstext && (CURSCRIPT == 'forum' || IS_ROBOT || $_G['adminid'] == 1)) {
  5.     $seokeywords = helper_seo::strreplace_strip_split($searchs, $replaces, $keywordstext);
  6. }
復(fù)制代碼
替換為:
  1. if($descriptiontext) {
  2.     $seodescription = helper_seo::strreplace_strip_split($searchs, $replaces, $descriptiontext);
  3. }
  4. if($keywordstext) {
  5.     $seokeywords = helper_seo::strreplace_strip_split($searchs, $replaces, $keywordstext);
  6. }
復(fù)制代碼
保存,即可!轉(zhuǎn)載請(qǐng)注明來源:http://wangaiche.com





作者: 書生    時(shí)間: 2012-4-21 23:26
Discuz X2.5不是很穩(wěn)定,Bug比較多。。。啊啊啊啊
作者: 改裝者    時(shí)間: 2012-7-31 12:08
支持樓主。。。
作者: 交航維修學(xué)院-張    時(shí)間: 2012-7-31 16:17
路過來看看、、、、、、、、、、、、、、
作者: 小瓷杯    時(shí)間: 2012-9-6 16:42
裝個(gè)2.0吧、、、




歡迎光臨 玩改車 (http://www.beclighting.com.cn/) Powered by Discuz! X3.5