discuz门户设置关键词需要登录之后才能看到的解决办法 找到文件:source/class/helper/helper_seo.php 在里面找到这样一段话:[代码]php代码:if($descriptiontext && (CURSCRIPT == 'forum' || IS_ROBOT || $_G['adminid'] == 1)) { $seodescription = helper_seo::strreplace_strip_split($searchs, $replaces, $descriptiontext); } 将其修改为这样:
[代码]php代码:if($descriptiontext) { $seodescription = helper_seo::strreplace_strip_split($searchs, $replaces, $descriptiontext); } if($keywordstext) { $seokeywords = helper_seo::strreplace_strip_split($searchs, $replaces, $keywordstext); } 修改完成之后,更新缓存即可。 注意:请备份好源文件,如有问题,方便还原。本方法经discuz x2.5测试可行。 |