Thursday, September 10, 2015

Removing forum posts from courses...

Discovered something useful today.  My customer emailed me and said "James, there are old forum posts in course xxx, even though we removed old enrollments.  Can we remove them?".

Well yes, we must not have deployed a bu of the course without data.  That is what we usually do, so seeing posts from formerly enrolled students was odd.  If we simply left the course from the previous year and removed enrollments, like maybe the content did not change, so we left the course?  then the forms posts would still be in the course.

I accessed the course, choose a forum and saw what Mike was saying was true.  I, in admin. role, was able to (teachers and managers too) select a post from a student and see the option to delete the post.  I did this fore one forum, but the course has about 10 of them.  That is a lot of manual deleting.

Next thought?  Look in the DB, see if you can find the forums posts for the course and remove them with a little SQL.  I was about to do this when I ran across this useful post about removing posts using a native moodle interface.  This is a better solution that doing it in the DB, that is a little risky.  The native Reset function is better, because it may touch or update a couple other places in the DB that I would miss, doing it manually.  Get it?  Got it? Good.

How to delete all forum posts from a course

Course admin | Reset | choose the forum posts only.

Actually, nothing resets unless you select it, good job moodle programmers.


3 comments:

  1. you can import music from spotify to google music / apple music / etc or vice versa ).
    try MusConv.com tool. This is a great help for anyone. I've used this already!

    ReplyDelete
  2. Thanks for sharing the tips to import music from Spotify to Google music Play. Since Spotify songs are only available for streaming online, so you have to download Spotify music by Spotify playlist converter before you can transfer the music anywhere.

    ReplyDelete
  3. As per my opinion, videos play a vital role in learning. And when you consider Big data platform managed service , then you should focus on all the learning methods. Udacity seems to be an excellent place to explore machine learning.

    ReplyDelete