Forum thread subscription: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==The description of changes== | ==The description of changes== | ||
===Visual changes in the interface the following=== | ===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: [[Image:subscribed.png]], if it is not subscribed, the column "Subscribe" will contain the following image:[[Image:unsubscribed.png]]; | * on page with the table of branches of a forum the new column "Subscribed" 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: [[Image:subscribed.png]], if it is not subscribed, the column "Subscribe" will contain the following image:[[Image:unsubscribed.png]]. If the subscription is issued on all forum the column "Subscribed" won't be displayed; | ||
[[Image:DiscussionsList.png]] | [[Image:DiscussionsList.png]] | ||
Line 21: | Line 21: | ||
[[Image:DatabaseModel.png]] | [[Image:DatabaseModel.png]] | ||
==Changes on the form of settings of a forum== | ==Changes on the form of settings of a forum (/mod/forum/mod_form.php)== | ||
The parameter "Subscription mode" will contain following options: | The parameter "Subscription mode" will contain following options: | ||
# Forum optional subscription (discussion subscription disabled) | # Forum optional subscription (discussion subscription disabled) | ||
Line 31: | Line 31: | ||
''The remark'': It has been added two new options (point 2 and 5). Remaining options fulfill the same role as earlier (names of options only are changed). | ''The remark'': It has been added two new options (point 2 and 5). Remaining options fulfill the same role as earlier (names of options only are changed). | ||
==Changes on the form of the publication of a post (/mod/forum/post_form.php)== | |||
The parameter "Subscription" will contain following options: | |||
# I don't want email copies of posts to this forum or discussion | |||
# Send me email copies of posts to this forum | |||
# Send me email copies of posts to this discussion | |||
''The remark'': The option "Send me email copies of posts to this discussion" (point 3) has been added. At the publication of a post with parameter "Subscription" equal to point 3, attempt of a subscription to discussion in which the post is published will be produced. |
Revision as of 16:36, 13 November 2010
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 "Subscribed" 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: , if it is not subscribed, the column "Subscribe" will contain the following image:. If the subscription is issued on all forum the column "Subscribed" won't be displayed;
- 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».
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 settings of a forum (/mod/forum/mod_form.php)
The parameter "Subscription mode" will contain following options:
- Forum optional subscription (discussion subscription disabled)
- Forum optional subscription (discussion subscription enabled)
- Forum forced subscription
- Forum auto subscription (discussion subscription disabled)
- Forum auto subscription (discussion subscription enabled)
- Forum subscription disabled
The remark: It has been added two new options (point 2 and 5). Remaining options fulfill the same role as earlier (names of options only are changed).
Changes on the form of the publication of a post (/mod/forum/post_form.php)
The parameter "Subscription" will contain following options:
- I don't want email copies of posts to this forum or discussion
- Send me email copies of posts to this forum
- Send me email copies of posts to this discussion
The remark: The option "Send me email copies of posts to this discussion" (point 3) has been added. At the publication of a post with parameter "Subscription" equal to point 3, attempt of a subscription to discussion in which the post is published will be produced.