Thanks.
Bill
You may like to consider using a glossary or database module activity, rather than a forum, as both have approval options.
Regarding blocking a particular user, this may be achieved by assigning them a role with the capability to start discussions or reply set to prevent. (Please say if you require further information about this option.)
Here is my situation. I am working on a class to teach Greek to grade school kids. Because of their ages, I know that their parents are going to be very cautious of inappropriate posts, and I don't think that a promise on my part to remove offensive ones as soon as I find them is going to give parents enough assurance.
Without the approval queue, I am going to have to use Drupal or bbPhp for forums and link to them from within Moodle, which means it will work but wouldn't be very elegant.
Is there community support for requesting this feature in Moodle 2.0 do you think?
Thanks.
Bill

I too would like to add my support for an approval period for forum posts in moodle. I work in a boarding school and there is a requirement for pupil posts to be cleared by a forum moderator before they are submitted to our VLE.
Like my fellow moodle users I would like to support the implementation of this feature in a future version of moodle.
Add me to the "advocacy group" for this feature. As there becomes more corporate interest in Moodle, I can tell you, that for concerns of confidentiality and non-disclosure, an approval process for forum postings would be essential for courses that may involve sensitive client or project information.
~Bob
I understand the use cases put forward - I hear them frequently enough in my work with clients.
Incorporation of this would undoubtedly change the nature of many discussions (if they would still be 'discussions').
It would be a big step for Moodle IMO.
While your thoughts are good...there is a great deal of difference (especially at the public K-12 School Level) between the immediacy of comments made in a classroom (combined with comments made by the teacher immediately in response) and those comments made online. Afterall, the comments made on a moodle forum are already delayed by 30 minutes by default. That lag in and of itself could cause a great deal of confusion to the ongoing "discussion"...for instance, a student comments on another student's comments. 10 minutes later another student comments on the same comment. When the original student sees the first response and makes their "defense", it is still ten minutes before they see the second student's comments which could either hurt or help their case (in the event of a heated disagreement/debate type setup). If we want a true discussion then maybe we should be moving the other way where we don't have the 30 minute lag time...I still think giving administrators the option of have both available could be a benefit if we don't go the way of allowing individual teachers to setup the modules with the moderation option.
With moodle being designed for scholastic uses, it seems logical that the safeguards that would be expected would be included. The reason I use Moodle instead of other more open social networking tools is due to the control that a teacher has the opportunity to maintain over the course and its activities.
Hope that makes sense! (grammar tuition welcome
We could have a philosophical discussion about these policies and the social constructionist pedagogy that would be quite interesting. However, that discussion is would get us nowhere if we can't use the tool because of lack of a feature.
I know in our current LMS (ANGEL) we can turn moderation on or off for discussions forums. I believe the same capability is in Blackboard. We can moderate YouTube comments (and I wish more people would). We can moderate blog comments. It doesn't seem unreasonable to be able to moderate Moodle discussion furum comments.
I know for a practitioners viewpoint, the inability to moderate posts will be a touchy policy area as we move to Moodle.
I vote for the availability of forum moderation.
Thank you Anthony.
I stumbled across the patch after I posted my comment here. It looks like it should work for what we need.
We're going to give it go on our test bed installation.
Thank you for the very prompt response.
Hi Anthony,
We have applied the patch and in the Permissions menu we now have the facility to allow or prohibit approval (see attached) so the plugin is doing something. BUT the approve / unapprove button does not appear in the forum window.
We are in Moodle 1.9.10 (Build: 20101027)
Any help would be very gratefully received!
Best wishes
Elspeth
Based on the missing language string, I would say something happened that the patch did not apply correctly. I recently made a quick attempt at applying the patch to my git repository which you can check out at https://github.com/arborrow/moodle/tree/moodle19-patch_forumpostapproval. I have not tested it much but it may be a step in right direction for you. If you are familiar with git then you can pull the code in. Otherwise, if you just want to test it, you could download the zip file and install it on a test server and see if it helps. I'm attaching the results of a diff between MOODLE_19_STABLE and the version in the git repository if that might be of help.
I also began looking at migrating the patch to Moodle 2.0. I've created a branch and would be willing to pull in changes as folks recommend them. Because of the more integrated rating system, we will need to redo things to get ajax working or simply decide to drop that functionality. It is not likely that I will have much time to mess around with it so if folks who are using it want to begin helping to adapt the patch to Moodle 2.0 that would be most appreciated.
Let me know if you have further questions and how I might be of help. Peace - Anthony
function forum_approve_post($post) {
}
it show me parse error like
Parse error: syntax error, unexpected $end in moodle/mod/forum/lib.php on line 7120.
I used but this is not working properly, please see the attached screenshot.
Approve – unapproved option also not working..
Thanks and Regards
Shailesh Jaiswar
Thanks
Nathan
Thanks
Trying to apply this patch (NetBeans makes it very easy and graphical) but when I go to add a new post, the page is blank. I was able to revert back to my original files and all is well again. I did see the change added when updating the forum for requiring approval. Any ideas? 1.9.4.
Any ideas to get this to work?
EDIT: On second attempt I did notice NetBeans said "Partially Applied" maybe this is an issue with NetBeans rather than the patch file?
Does this mean a full redo of the patch file is required for the new v195 forum files?
Sorry about the long delayed reply. The patch is applied to the newest version (195+) by NetBeans - but only partially, this causes much distress as some code is modified but not all mods from the patch file. As said above this caused the forums to open a blank page and not function.
Using TortoiseMerge to apply the patch it stops and tells me that the patch CAN be applied to:
- mod\forum\db\access.php
- mod\forum\mod_form.php
- mod\forum\post.php
- mod\forum\rate.php
- lang\en_utf8\forum.php
- lang\en_utf8\error.php
- mod\forum\rate_ajax.js
- mod\forum\lib.php
- mod\forum\rate_ajax.php
Can you replicate this issue?
It patched without error but it is not performing as I thought it would.
1) It did not patch the language files so it the menus looked like this [ [ approve ] ] and [ [ unapprove ] ]. Was it supposed to patch the language files?
The files patched were
mod/forum/db/access.php
mod/forum/mod_form.php
mod/forum/post.php
mod/forum/rate_ajax.js
mod/forum/lib.php
mod/forum/rate_ajax.php
forum/patch_forum_approveposts.txt
Is that all? Can you please post the changes in the language file?
2) When I use the approve/unapprove <select> nothing happens. No stirring of any sort and no change to the status of the post. What, exactly, is supposed to happen. Something AJAX related? Are there any special considerations.
Posts default to unapproved. After editing them they are approved.
Update - I just worked out I am supposed to click 'send in my ratings'. I did not realize this because I was using a social course format, and did not see a button like that on the course home page. However the <select> appears. Can this patch work in the forum of a social course format home page?
Thus I support the moderation feature. Obviously administrators or teachers will set this based on their needs.
Goodmorning,
I would like to know if there is any one who has installed the patch and it works because I really need this functionality and I have trouble installing it.
It's probably not quite the same issue, but I've run into difficulties trying to apply the patch to use this feature for a Moodle 1.9.7 (build 20100106) installation; while trying to patch file forum/patch_forum_approveposts.txt, the patch application returns:
"Assertion failed: hunk, file ../patch/2.5.9-src/patch.c line 354
The application has requested the Runtime to terminate it in an unusual way. Please contact the application's support....."
I realise that this is a problem with applying the patch, rather than with the code itself, but I've now tried a few ways on different Moodle installations with no joy. I may install NetBeans and see if it's easier to get the patch applied using that; but it would really help right now if someone could tell me the ideal build and version for this patch. It seems from comments here and my own experience that it's not very consistent behaviour across differernt 1.9 versions; and yet the behaviour whern actually working (pre-approval of forum postings) sounds wonderful and is just what we and many institutions need.
Hi Anthony, if you did have the time, a zip file would be great.
Version 1.9.2 (20080711) on Windows.
Many thanks
Martin
Martin - I would recommend that you upgrade to the latest stable version of Moodle 1.9. There have been a variety of security and bux fixes since 1.9.2 (about two years worth). Once you have the latest version, just send me a Moodle message or email and I'll make a zip file available to you. Peace - Anthony