Discuz! X3 keywords" content="首页, 游客看不到keyword与description的解决方案
首先找到目录: /source/class/helper/helper_seo.php
38-42行内的代码:
找到:
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);
2.5下修改方法:https://discuz.dismall.com/forum.php?mod=viewthread&tid=3221496&reltid=2151101&pre_thread_id=0&pre_pos=1&ext=CB
说的很详细了,我已经测试过了,一切正常。
再有不会的加我QQ:10220039 有偿服务哈
我的论坛:www.wlit.cn
|