Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Forum thread subscription: Difference between revisions

From MoodleDocs
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 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]], if it is not subscribed, the column "Subscribe" will contain the following image:[[Image:unsubscribed]];


[[Image:Screenshot1.jpg]]
[[Image:DiscussionsList]]


* on page of review of discussion of a forum in the unit of adjustments (Settings) the new point will be added «To subscribe for current discussion».
* on page of review of discussion of a forum in the unit of adjustments (Settings) the new point will be added «To subscribe for current discussion».


[[Image:Screenshot2.jpg]]
[[Image:SettingsBlock]]





Revision as of 14:09, 15 October 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 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: File:subscribed, if it is not subscribed, the column "Subscribe" will contain the following image:File:unsubscribed;

File:DiscussionsList

  • on page of review of discussion of a forum in the unit of adjustments (Settings) the new point will be added «To subscribe for current discussion».

File:SettingsBlock


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 «mdl_forum_discuss_subscriptions». Changes in install.xml and upgrade.php will be made.