discuz允许游客表态的方法 [复制链接]

moqu8 2017-10-25

5 0
discuz允许游客表态,不限制登陆状态,效果如下:


修改方法:

1.找到文件:source/module/home/home_spacecp.php

找到:

[代码]php代码:

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));     }

注销或删掉

找到:

[代码]php代码:

if(empty($space)) {          showmessage('space_does_not_exist');     }

注销或删掉


找到文件:/source/include/spacecp/spacecp_click.php

找到:

[代码]php代码:

if(!checkperm('allowclick') || $_GET['hash'] != $hash) {          showmessage('no_privilege_click');     }

注销或删掉

找到:

[代码]php代码:

if(C::t('home_clickuser')->count_by_uid_id_idtype($space[uid], $id, $idtype)) {          showmessage('click_have');     }

注销或删掉

然后刷新,去看看吧。

最新回复 (0)
返回
支持中心
邮箱:winkill2012@qqcom
新站优化中!部分功能尚未完善,敬请谅解!
支持中心