Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Forum thread subscription.

Development:Forum thread subscription

From MoodleDocs

Result

Result of operation will be the patch which will make changes to system Moodle forum unit. Changes add possibility of a subscription to separate discussion of a forum.

The description of changes

Visual changes in the interface the following:

  • on page with the table of branches of a forum the new column with the graphics image, the symbolizing current status of a subscription to each discussion will be added. The image will accept two states symbolizing the fact of a subscription to a current branch. If the current user is subscribed on discussion a column "Subscribe" will contain the following image: subscribed.png, if it is not subscribed, the column "Subscribe" will contain the following image:unsubscribed.png;

DiscussionsList.png

  • on page of review of discussion of a forum in the unit of adjustments (Settings) the new point will be added «Subscribe to this discussion».

SettingsBlock.png


Data representation: The following information is necessary for storage of a subscription to forum discussion:

  • the discussion identifier;
  • a user id.

In a DB the table containing the fields set forth above will be added. The table will have the name «forum_discuss_subscriptions». Changes in install.xml and upgrade.php will be made.

Changes on the form of adjustments of a forum

The new option "Discussion subscription mode" with following modes will be added:

  • optional subscription;
  • auto subscription;
  • subscription disabled.

File:ForumSettings.png

The remark: the given option will be considered at following values of an option "Subscription mode":

  • optional subscription;
  • auto subscription.

Response to change of a mode of a subscription to a forum

At a subscription to all forum on which already there are signed discussions, switch-off of a subscription to discussions of a current forum will be produced. At the formal reply from all forum the disconnected subscriptions to discussions are recovered.