On "general" type forums, setting "open" to 0 doesn't prevent the "Reply" option to appear.
This problem was detected when a forum had some postings and the teacher decided that the work should go on in some other place. So she set "open" to "0" but the Reply option still appeared. Of course, when students clicked on that link, a red box (in ENGLISH) appeared: "Sorry, but you can not post in this forum", so they could not really reply, even though Moodle said so.
FIX:
===
Simply check the "open" state before showing the "Reply" link.
In discuss.php:
Line 147: if(!$forum->open)
elseif ((empty($mygroupid) and $discussion->groupid == 1) || ($mygroupid == $discussion>groupid)) {
...
Line 160: $canreply = ((empty($mygroupid) and $discussion->groupid == 1) || ($mygroupid == $discussion>groupid)) and $forum->open;
...
- has been marked as being related by
-
MDL-8864 A message in English, "Sorry, you cannot post in this discussion" appears when mod/forum:replypost is prevented.
-
- Closed
-