Moodle

Forum: Add calendar events for forum rating restriction dates

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.4
  • Fix Version/s: None
  • Component/s: Forum
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

The idea of adding to the calendar an event(s) when restricting forum ratings was mentioned at http://moodle.org/mod/forum/discuss.php?d=116662. Initially I was going to just create an issue in the tracker but figured I would see what it would take to bang out a quick patch. The quiz module provided a good example which I followed and it is a pretty simple patch. This issue is related to MDL-18299 which requests open and close dates be created in the calendar based on the conditional activities fields, MDL-15235 which requests the ability to set open/close availability dates (completed already in Moodle 2.0), and MDL-7185 which requested some type of notification to the student when the ratings were being limited. All of these seem to be somewhat loosely related. Since most of them are resolved in Moodle 2.0 I would propose that the patch (which was designed against 1.9) could be applied to HEAD for 2.0.

The attached patch file implements adding to the calendar an event if the ratings are restricted, updating the events (using the same approach in quiz of first deleting all the events and creating new ones), and deleting events when the forum is deleted. I'm not sure (and have not tested) what validity checks may or may not be done to ensure that the end date is not prior to the start date. I do like the idea of indicating not only the activity in the event name but also some type of description of what is happening (perhaps based on event type). So I created a couple of language strings to describe the event. I would also like to go back and review MDL-7185 a little more closely to make sure that all of those issues are addressed. In particular, when looking at the forum description I think there should be some indication to the student what the rating restrictions are (if they exist) in addition to the calendar events that this patch addresses.

Peace - Anthony

  1. forum_events.diff
    20/Feb/09 10:28 AM
    7 kB
    Anthony Borrow
  2. forum_events.diff
    18/Feb/09 1:53 PM
    4 kB
    Anthony Borrow

Issue Links

Activity

Hide
Anthony Borrow added a comment -

By adding the events to the calendar there is some indication to the student of the time frame they have to rate posts.

Show
Anthony Borrow added a comment - By adding the events to the calendar there is some indication to the student of the time frame they have to rate posts.
Hide
Anthony Borrow added a comment -


Similar to MDL-18299, MDL-18300 creates calendar events in the forum. MDL-18299 focuses on the opening/closing dates (i.e. dates that the forum is available) while MDL-18300 focuses on the dates for which forum posts can be rated. The patch for MDL-18300 and in particular the forum_after_add_or_update function could be used to create the events requested in MDL-18299 and thus may help resolve the issue.

Show
Anthony Borrow added a comment - Similar to MDL-18299, MDL-18300 creates calendar events in the forum. MDL-18299 focuses on the opening/closing dates (i.e. dates that the forum is available) while MDL-18300 focuses on the dates for which forum posts can be rated. The patch for MDL-18300 and in particular the forum_after_add_or_update function could be used to create the events requested in MDL-18299 and thus may help resolve the issue.
Hide
Anthony Borrow added a comment -

Just a note to myself, that at some point it would not be a bad idea to create a forum_refresh_events function in /mod/forum/lib.php that would ideally re-create the calendar events for both availability (conditional activity) and forum rating (assessment) time restrictions.

Show
Anthony Borrow added a comment - Just a note to myself, that at some point it would not be a bad idea to create a forum_refresh_events function in /mod/forum/lib.php that would ideally re-create the calendar events for both availability (conditional activity) and forum rating (assessment) time restrictions.
Hide
Anthony Borrow added a comment -

Updating forum_events.diff - added standard forum_refresh_events function in case the course is being restored. I have not tested the forum_refresh_events function to verify it works. The forum_refresh_events function would need to be expanded to create not only the assessment events but also the availability events as described in MDL-18299.

Show
Anthony Borrow added a comment - Updating forum_events.diff - added standard forum_refresh_events function in case the course is being restored. I have not tested the forum_refresh_events function to verify it works. The forum_refresh_events function would need to be expanded to create not only the assessment events but also the availability events as described in MDL-18299.
Hide
Rick Jerz added a comment -

I want a little more than most.

Restricting post to certain dates is fine. But I also want to be able to have a separate "Calendar due date" feature that when used, this is what shows up in the calendar.

Here's why.

I like to encourage all discussions. Sometimes, even after a forum discussion has ended, some students will later still want to comment on an earlier post. I find this to be great. Wow, students still want to discuss earlier chapters! If I turn off a forum, students can't go back.

Show
Rick Jerz added a comment - I want a little more than most. Restricting post to certain dates is fine. But I also want to be able to have a separate "Calendar due date" feature that when used, this is what shows up in the calendar. Here's why. I like to encourage all discussions. Sometimes, even after a forum discussion has ended, some students will later still want to comment on an earlier post. I find this to be great. Wow, students still want to discuss earlier chapters! If I turn off a forum, students can't go back.
Hide
Anthony Borrow added a comment -

Rick - First, my apologies for the delay in responding to your comment here but I do appreciate your participation. Now that classes have finished for the semester I am playing catch up. I am not exactly sure how your comment relates to this particular issue which is focused on adding to the calendar events for forum rating dates. It sounds like you want a calendar due date (forum end date) which is really not the end. To be honest, I would just manually create the calendar event and indicate that it is the due date for the forum and then let your students continue to use it as they wish. Generally speaking, forums are pretty open ended in terms of dates. Conditional activities will take care of enforcing the end date; however, if you want an event in the calendar that indicates the close of a forum that is not enforced then I would just do that manually through the calendar. Peace - Anthony

Show
Anthony Borrow added a comment - Rick - First, my apologies for the delay in responding to your comment here but I do appreciate your participation. Now that classes have finished for the semester I am playing catch up. I am not exactly sure how your comment relates to this particular issue which is focused on adding to the calendar events for forum rating dates. It sounds like you want a calendar due date (forum end date) which is really not the end. To be honest, I would just manually create the calendar event and indicate that it is the due date for the forum and then let your students continue to use it as they wish. Generally speaking, forums are pretty open ended in terms of dates. Conditional activities will take care of enforcing the end date; however, if you want an event in the calendar that indicates the close of a forum that is not enforced then I would just do that manually through the calendar. Peace - Anthony

People

Vote (3)
Watch (2)

Dates

  • Created:
    Updated: