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

 

注销或删掉

 

然后刷新,去看看吧。

五月源码网 discuz教程 discuz允许游客表态的方法 https://www.u532.com/1216.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务