Discuz版塊設(shè)置只有版主和發(fā)貼人能回復(fù)

修改post.php 這個(gè)文件,在59行處

1
2
3
if($thread['readperm'] && $thread['readperm'] > $readaccess && !$forum['ismoderator'] && $thread['authorid'] != $discuz_uid) {
   showmessage('thread_nopermission', NULL, 'NOPERM');
  }

的下面添加下面代碼即可。

1
2
3
4
5
  //只有版主和發(fā)貼人自己能回復(fù)
  if(($forum['fid']==42) && ($thread['authorid']!=$discuz_uid) && !$forum['ismoderator']  )
  {
           showmessage('只有版主和發(fā)貼人才能回復(fù)', NULL, 'NOPERM');
  }