Issue Details (XML | Word | Printable)

Key: MDL-1071
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Martin Dougiamas
Reporter: Peter Sereinigg
Votes: 40
Watchers: 34
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Add a forum option to allow anonymous posting

Created: 25/Feb/04 06:01 AM   Updated: 13/Aug/09 06:21 AM
Return to search
Component/s: Forum, Usability
Affects Version/s: 1.7, 1.8, 1.9, 2.0
Fix Version/s: None

File Attachments: 1. Text File anonymous_forums.patch (16 kB)
2. Text File anonymous_forums_rev1.patch (17 kB)
3. Text File anonymous_forums_rev2.patch (16 kB)
4. Text File anonymous_forums_rev2p1.patch (14 kB)
5. Text File anonymous_forums_rev2p2.patch (15 kB)
6. Text File anonymous_forums_rev2p2.patch (15 kB)
7. Text File anonymous_forums_rev2p3.patch (23 kB)
8. Text File uow-rss.patch (0.7 kB)

Image Attachments:

1. anonymous.png
(3 kB)
Environment: All

Participants: Dean Stringer, Hans de Zwart, Hubert Chathi, James Phillips, Jason Meinzer, Jill R Brown, PhD, Kenneth Newquist, Martin Dougiamas, Nadav Kavalerchik, Paul Fynn, Peter Sereinigg, Shane Elliott, Stuart Anderson and Wen Hao Chuang
Security Level: None
Affected Branches: MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE


 Description  « Hide
Please add this as option for special forums, maybe when creating a forum, an option is checked, anonymus allowed

Thanks Peter

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas added a comment - 13/May/05 03:01 AM
From Robert (rjb at robelko.com) Friday, 13 May 2005, 03:01 AM:

A more generic solution would be to add a parameter specifying the type for each forum:

a. normal forum

b. anonymous forum

c. normal forum with anonymous posts allowed

In case c, users should be presented an extra button to post either under their name or anonymously. In case b, the submit button should probably be renamed to sth like post anonymously to forum.

Moodle would store posts as it does now but in case b (for all posts) and c (for posts requested to be anonymous) set a flag in the database (an extra field) that marks a given post as anonymous.

The code that displays posts would check this flag and use a different branch to display them, giving user name as anonymous and using the generic user image.

The mail sending code would also have to have a branch to specify sender as anonymous <noreply@xxx.yyy>.

This would eliminate extensive changes in other library functions as suggested in Timothy's hack (cf http://moodle.org/mod/forum/discuss.php?d=22530).

This would also eliminate a need for signing up under dummy names, thus allowing otherwise normal use of other course activities, and in extreme cases it would allow admins to track down users making inappropriate posts.


Martin Dougiamas added a comment - 21/Feb/07 09:22 AM
Assigning to me temporarily because Vy-Shane no longer works for Moodle HQ.

James Phillips added a comment - 07/May/07 07:19 PM - edited
This would be a massively useful feature in Japan and I am very keen to see this.

I am slightly depressed to see this marked as "trivial". This is a very, very important feature in Japan, where forums basically don't work if they are not anonymous.


Stuart Anderson added a comment - 19/Jun/07 04:49 PM
I think this would be useful in many contexts all over the world. In my University we use the forums for trying to get feedback from students for our Staff-Student committee. Without an anonymous forum, students are reluctant to express opinions which may be deemed "controversial". Also, we have a high number of Asian (particularly Chinese) students whom are less comfortable speaking out.

I vote whole heartedly for this feature to be added to moodle.

Thanks,

Stuart Anderson,
University of Manchester.


Kenneth Newquist added a comment - 26/Jul/07 03:44 AM
Our faculty are also interested in seeing such a feature added to forums.

Ken Newquist
Lafayette College


Hans de Zwart added a comment - 02/Oct/07 11:16 PM
We also have a client who will be interested in having this option.

Jill R Brown, PhD added a comment - 31/Oct/07 01:18 AM
We have school counselors who are interested in this option. What is the status?

Jill Brown, Director of Educational Technology


Jason Meinzer added a comment - 11/Mar/08 03:26 AM
Attached is a patch against 1.9 that implements anonymous forums as described in the first comment. The patch is incomplete in that it lacks database migration hooks, but these should be simple for a more experienced Moodle developer to add The new columns to support this feature are:

forum:
anonymous int2 DEFAULT 0, – 0, 1, 2 = no, yes, optional

forum_posts:
anonymous int2 DEFAULT 0

When creating a forum, you can now specify if posts should be anonymous, not anonymous, or optionally anonymous. In the latter case, users are presented with a checkbox that they can tick if they want their post to be anonymous.

Anonymous posts get hidden from the post history on the user's profile, as well as the recent activity block and recent activity full report. When displayed and emailed, the anonymous posts are attributed to the name specified in $CFG->anonymous_name (e.g. 'Anonymous Student'), with current_theme()/pix/anonymous.png used as their picture.

If anyone discovers or knows of other areas where anonymous forum posts would be displayed improperly please let me know.


Stuart Anderson added a comment - 11/Mar/08 07:38 PM
Well done Jason. I think this would be a highly valuable addition to the forum behaviour and strongly feel it should be patched into the moodle 2.0 development code early on. It will provide a means for our shy international students to contribute their opinions without being identified.

Thanks again for all your work.


Jason Meinzer added a comment - 12/Mar/08 03:22 AM
Revised my first patch to fix the following issues:
  • "Last post" column was still displaying user's real name
  • Anonymous posts were hidden in recent activity, they now appear attributed to $CFG->anonymous_name
  • Anonymous posts were hidden in the recent activity full report, they now appear attributed to $CFG->anonymous_name

Nadav Kavalerchik added a comment - 02/Jan/09 06:26 PM
does this patch allow guest users to post ?

Jason Meinzer added a comment - 04/Jan/09 07:09 AM
No this patch allows authenticated users to make posts which are flagged as "anonymous" if the forum settings allow it. These posts are all displayed as belonging to a fake anonymous user, but they still belong to real users. The patch implements all the behaviors described in Martin's post.

Peter Sereinigg added a comment - 04/Jan/09 06:53 PM
The problem will be, that we have to change the core code and updates will be more difficulty, therefore a solution would be fine, where this feature is part of the core
Peter

Jason Meinzer added a comment - 08/Jan/09 08:16 AM
I too would like to see this patch applied to core.

Hubert Chathi added a comment - 07/Feb/09 01:22 AM
I'm attaching a patch (anonymous_forums_rev2p1.patch) that:
  • add database migration hooks (only for Moodle 1.9 – won't work with Moodle 2.0 since 2.0 has a higher module version)
  • if you do a forum search on a user, all their anonymous posts would show up- renames $CFG->anonymous_name to $CFG->forum_anonymousname (to conform to the other forum configuration variables) and adds a configuration element to the Forum configuration
  • fixes two issues:
  • if a user starts a forum with an anonymous post, and nobody has replied yet, then their name was still revealed in the "last post" column
  • if someone does a forum search for a user, then all the user's anonymous posts would still show up

The patch applies on top of Jason's anonymous_forums_rev2.patch.


Hubert Chathi added a comment - 07/Feb/09 01:23 AM
  • add database migration hooks (only for Moodle 1.9 – won't work with Moodle 2.0 since 2.0 has a higher module version)
  • if you do a forum search on a user, all their anonymous posts would show up- renames $CFG->anonymous_name to $CFG->forum_anonymousname (to conform to the other forum configuration variables) and adds a configuration element to the Forum configuration
  • fixes two issues:
  • if a user starts a forum with an anonymous post, and nobody has replied yet, then their name was still revealed in the "last post" column
  • if someone does a forum search for a user, then all the user's anonymous posts would still show up

patch applies on top of anonymous_forums_rev2.patch


Hubert Chathi added a comment - 07/Feb/09 02:02 AM
New patch (anonymous_forums_rev2p2.patch) that also masks user names for anonymous posts in the global search. Again, it applies on top of anonymous_forums_rev2.patch (but includes my previous patch).

Martin Dougiamas added a comment - 07/Feb/09 10:19 PM
Shane Elliott was working on something like this, but we'd planned it to work for everywhere in Moodle. Shane, this could be useful to look at.

Hubert Chathi added a comment - 10/Feb/09 01:17 AM
Anonymity support that would apply everywhere in Moodle would be good. Some things are very hard to do just in a single module.

Here is my patch #3 (anonymous_forums_rev2p3.patch, which applies on top of anonymous_forums_rev2.patch), which fixes the following issues:

  • anonymize RSS feeds
  • don't count anonymous posts in user's post count (can give clues about who wrote an anonymous post)
  • don't show anonymous posts in user's full report
  • don't show anonymous posts in user's recent activity
  • update anonymous post status when post is updated (in case forum setting was changed)
  • post author was still revealed in digest emails

Remaining issues that I'm aware of:

  • if you set the anonymity setting of the forum, and later change it (e.g. from always anonymous to never anonymous), then that setting is not honoured in all places (e.g. in searches)
  • when an anonymous post is mailed, the custom mail headers are not set. This is due to $userfrom being assigned to a string, which discards $userfrom->customheaders. Without making changes to email_to_user, the only way to fix this is to, instead of assigning $userfrom to a string, do something like assign $userfrom->firstname to $CFG->forum_anonymousname, $userfrom->lastname to '', and $userfrom->email to $CFG->noreplyaddress.
  • some forum types probably don't make sense with some anonymity types. e.g. "Q and A forum" and "Each person posts one discussion" e.g.:
    • should anonymous posts count as the "one discussion topic" that each person is allowed to post? Right now, it does. It probably doesn't make sense to allow anonymous posts to start topics in these forum types, even if you want to allow other posts to be anonymous.

Moral of the story: anonymity is very hard to do.


Shane Elliott added a comment - 20/Feb/09 10:59 AM
Hi, finally catching up on some of my dev plans/work. Martin and I had discussed an anonymous mode in moodle that would work for all the activities. The basic idea being that "teachers" could switch an activity (forum, chat, etc) into anonymous mode. There would also be capabilities that would determine who could view the real name of users. Users could either add an anonymous name in their profile or moodle would revert to a language string eg "Anonymous"

Many thanks for the patches and comments. At a quick glance I think there is some important work and ideas done here. I'll start some documention at the docs site as soon as I can and then post the link back here and hopefully we can get the ball rolling on this.


Paul Fynn added a comment - 25/Feb/09 09:13 PM
Important to my students, who don't want to appear foolish by asking the wrong questions. As a quick suggestion, would a line of least resistance be to make 'anonymous' an actual user id and replace the users id with the new anonymous ID? Just a thought.

Hubert Chathi added a comment - 25/Feb/09 11:39 PM
It all depends on what level of anonymity you want. If you want it to be impossible to recover the true identity, then yes, you would replace the user's ID with the anonymous user's ID in the database. However, it seems like the way Moodle wants to do things is to keep the user's ID in the database, so that the identity can be recovered, which means that a lot of obfuscation needs to be done.

Wen Hao Chuang added a comment - 08/Apr/09 09:11 AM
I don't think this should be trivial, so I'm bumping up the priority level (if I may) to reflect the # of votes and so on. thanks!

Nadav Kavalerchik added a comment - 15/May/09 10:03 PM
teachers asked my about anonimity in the Questionnaire activity module
(it is in the contrib section and it does not come default with fresh moodle install)
http://cvs.moodle.org/contrib/plugins/mod/questionnaire/

it is a great module for getting student's feedback and most of them would like to
give that feedback anonymously (so say the teachers)

so please consider that module in your future patches (if you can)


Dean Stringer added a comment - 13/Aug/09 06:21 AM
minor patch to fix the RSS anonymous checking, need to check the forum property not the record one in the second conditional check