admin 发表于 2016-4-13 06:28:43

DiscuzX3.2修改门户文章允许游客表态

好多人希望开启门户文章的游客表态功能,我的解决方法如下:
方法/步骤
[*]1、首先找到自己网站source\module\home\home_spacecp.php,利用编辑软件将其打开;


[*]
2、查找并删除以下内容:
if($ac != 'comment' || !$_G['group']['allowcomment']) {      if(empty($_G['uid'])) {                if($_SERVER['REQUEST_METHOD'] == 'GET') {                        dsetcookie('_refer', rawurlencode($_SERVER['REQUEST_URI']));                } else {                        dsetcookie('_refer', rawurlencode('home.php?mod=spacecp&ac='.$ac));                }                showmessage('to_login', '', array(), array('showmsg' => true, 'login' => 1));      }


[*]
if(($space['status'] == -1 || in_array($space['groupid'], array(4, 5, 6))) && $ac != 'usergroup') {                showmessage('space_has_been_locked');      }}


[*]4
if(empty($space)) {      showmessage('space_does_not_exist');}



页: [1]
查看完整版本: DiscuzX3.2修改门户文章允许游客表态