Moodle

Ability to subscribe to database module and glossary comments

Details

  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

Description

Ability to be able to subscribe (either via email or by RSS) to comments added to database module entries or glossary entries - RSS would seem to be the simplest to do?

Issue Links

Activity

Hide
Anthony Borrow added a comment -

I'm adding 1.9 and 2.0 as affected branches. I think that we can continue to improve the comments functionality so that modules can determine whether or not to send messages to the person adding the entry, the teacher/moderator, all those who have commented on an entry, etc. It would be good to work out the details of the various options of what is desired in terms of functionality. I think this would be a good improvement for 2.1. Peace - Anthony

Show
Anthony Borrow added a comment - I'm adding 1.9 and 2.0 as affected branches. I think that we can continue to improve the comments functionality so that modules can determine whether or not to send messages to the person adding the entry, the teacher/moderator, all those who have commented on an entry, etc. It would be good to work out the details of the various options of what is desired in terms of functionality. I think this would be a good improvement for 2.1. Peace - Anthony
Hide
Anthony Borrow added a comment -

While not completely a duplicate, better reporting of activity including sending of comments to participants is related. Peace - Anthony

Show
Anthony Borrow added a comment - While not completely a duplicate, better reporting of activity including sending of comments to participants is related. Peace - Anthony
Hide
Davo Smith added a comment -

Here is a proposed patch that generates an RSS feed for the comments on an individual database entry.

To use it, enable RSS feeds at the site level, enable RSS feeds for database activities then edit the settings for an individual database instance to set the number of comments to include in the feed to a number greater than 0.

When you view an individual record a link underneath the comments that allows you to get an RSS feed for the comments on that record. Ideally there would also be a link in the navigation on the left, but it would require a lot of code to determine the correct record id when you only have the data id and the page number to work with.

Show
Davo Smith added a comment - Here is a proposed patch that generates an RSS feed for the comments on an individual database entry. To use it, enable RSS feeds at the site level, enable RSS feeds for database activities then edit the settings for an individual database instance to set the number of comments to include in the feed to a number greater than 0. When you view an individual record a link underneath the comments that allows you to get an RSS feed for the comments on that record. Ideally there would also be a link in the navigation on the left, but it would require a lot of code to determine the correct record id when you only have the data id and the page number to work with.
Hide
Anthony Borrow added a comment -

Thanks for the patch. I wonder what this patch might look like in Moodle 2.0 where comments are handled more uniformly across the various modules. As I understand it, the goal was to start simple with comments and build it up. An RSS feed might be nice if it is not already there. Peace - Anthony

Show
Anthony Borrow added a comment - Thanks for the patch. I wonder what this patch might look like in Moodle 2.0 where comments are handled more uniformly across the various modules. As I understand it, the goal was to start simple with comments and build it up. An RSS feed might be nice if it is not already there. Peace - Anthony
Hide
Davo Smith added a comment -

Just to be clear, the patch is for Moodle 2.0 only - I should have mentioned that in the original message!

Moments after submitting this patch, I started wondering how difficult it would be to add an RSS link to each comment section in a site (with some settings to control the number of comments per feed at the site/course level).

I reckon I could write something like that fairly easily, so if it is wanted, I could look into it if I have a bit of spare time next week (unless there is someone already working on such a feature).

Show
Davo Smith added a comment - Just to be clear, the patch is for Moodle 2.0 only - I should have mentioned that in the original message! Moments after submitting this patch, I started wondering how difficult it would be to add an RSS link to each comment section in a site (with some settings to control the number of comments per feed at the site/course level). I reckon I could write something like that fairly easily, so if it is wanted, I could look into it if I have a bit of spare time next week (unless there is someone already working on such a feature).
Hide
Davo Smith added a comment -

I got a little carried away today, so here is a patch that adds an RSS feed to comments wherever they are used in the Moodle site.

They need to be enabled by an Admin at site level, via 'Site Administration->Advanced features->Number of comments in RSS feeds'.

Setting that to any number > 0, will automatically add an RSS link just below the 'add comment' box.

Tested with blogs, glossary, database.
Does not work with wikis as they use a non-standard comment interface.

Probably lots of little tweaks needed (text adjustments, etc.), but it basically all works (on my development computer).

Show
Davo Smith added a comment - I got a little carried away today, so here is a patch that adds an RSS feed to comments wherever they are used in the Moodle site. They need to be enabled by an Admin at site level, via 'Site Administration->Advanced features->Number of comments in RSS feeds'. Setting that to any number > 0, will automatically add an RSS link just below the 'add comment' box. Tested with blogs, glossary, database. Does not work with wikis as they use a non-standard comment interface. Probably lots of little tweaks needed (text adjustments, etc.), but it basically all works (on my development computer).
Hide
Anthony Borrow added a comment -

Dave - Thanks for getting carried away! Peace - Anthony

Show
Anthony Borrow added a comment - Dave - Thanks for getting carried away! Peace - Anthony
Hide
Davo Smith added a comment -

Oops... a couple of small mistakes made it into the patch.

lang/en/comment.php - mentions 'completion' in the comments at the top of the file, not 'comment' (that was the language file I borrowed the header section from)
mod/data/view.php - this has already been fixed ( MDL-25564 ) (no changes are needed to this file)
rss/file.php - NO_DEBUG_DISPLAY should have been left defined (no changes are needed to this file)

Show
Davo Smith added a comment - Oops... a couple of small mistakes made it into the patch. lang/en/comment.php - mentions 'completion' in the comments at the top of the file, not 'comment' (that was the language file I borrowed the header section from) mod/data/view.php - this has already been fixed ( MDL-25564 ) (no changes are needed to this file) rss/file.php - NO_DEBUG_DISPLAY should have been left defined (no changes are needed to this file)
Hide
Davo Smith added a comment -

What is the best way to move this issue forward?

Would it help if I created a Moodle fork on github with this code in it?

Show
Davo Smith added a comment - What is the best way to move this issue forward? Would it help if I created a Moodle fork on github with this code in it?
Hide
Anthony Borrow added a comment -

Dave - It wouldn't hurt but the diff files should be sufficiently easy to work with. Now that comments are more standardized throughout all of the modules, it seems adding the ability to subscribe to them should not be that difficult. It looks like it is slated for 2.1 when the activity modules will get some attention. Peace - Anthony

Show
Anthony Borrow added a comment - Dave - It wouldn't hurt but the diff files should be sufficiently easy to work with. Now that comments are more standardized throughout all of the modules, it seems adding the ability to subscribe to them should not be that difficult. It looks like it is slated for 2.1 when the activity modules will get some attention. Peace - Anthony

People

Vote (12)
Watch (8)

Dates

  • Created:
    Updated: