Issue Details (XML | Word | Printable)

Key: MDL-9469
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: A. T. Wyatt
Votes: 11
Watchers: 9
Operations

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

ability to export forum content at the end of the term

Created: 20/Apr/07 09:06 PM   Updated: 29/Jul/09 06:09 AM
Component/s: Forum
Affects Version/s: 1.8, 1.9.2
Fix Version/s: None

File Attachments: 1. Zip Archive forum-archive.zip (105 kB)
2. Zip Archive forumexport.zip (6 kB)

Image Attachments:

1. screenshot-forum-archive.jpg
(143 kB)
Environment: any
Issue Links:
Relates
 

Database: Any
Participants: A. T. Wyatt, Ann Adamcik, Dean Stringer, Debra Burdick, Elena Ivanova, Joseph Rézeau, Mark Halvorson, Martin Dougiamas and Paulo Matos
Security Level: None
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
My faculty would really like the ability to export the content from each forum as a record of the "conversation" from each term. That way, we could keep it as an archive or as a record of the activity in the class.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Mark Halvorson added a comment - 24/Aug/07 09:32 AM
Both our faculty and our students would love to have the ability to export the content of a forum in a single document format (i.e. rft, html). We are in the process of migrating to Moodle and this is a feature that we had in our previous LMS (it will be missed).

Ann Adamcik added a comment - 23/Aug/08 01:18 AM
We're currently testing a 1.9.x patch that will allow users to export or print an entire forum.

Ann Adamcik added a comment - 18/Oct/08 03:01 AM
Here's a 1.9.x patch that allows users to export or print an entire forum.

Joseph Rézeau added a comment - 01/Feb/09 08:09 AM
Hi Ann, could you please provide some documentation on how to use forumexport?
I have installed it on my moodle 1.9 install, applied the patch to the various files, but how does one call it?
If I type moodle/mod/forum/export/export.php I get error message: A required parameter (f) was missing
Please help!
Joseph

Joseph Rézeau added a comment - 01/Feb/09 08:24 AM
Hm, actually I thought I had patched mod/forum/lib and mod/forum/view but I can't, your patch file produces rejects...

Can you please provide a new patch file which works with current moodle 1.9.4 forum files? thanks
Joseph


Joseph Rézeau added a comment - 01/Feb/09 05:21 PM
OK, I finally managed to patch my current 1.9.4 forum files, by hand.
It is quite easy to export the contents of one forum in a variety of formats.
(but download label and printlabel do not work)

I regret that in the output it's not possible to display the messages in nested form. Messages are only displayed in the "flat, with oldest first" format. Options should be provided OR the forumexport lib should detect the user's current setting for forum reading and use that current setting in its export display.

This forumexport utility may be useful for exporting ONE forum, but it cannot export multiple forums as can Dean Stringer's utility http://moodle.org/mod/forum/discuss.php?d=99400#p439599

Joseph


Elena Ivanova added a comment - 05/Feb/09 10:32 AM
This is one of the most common features that faculty request here, so it would be nice to put it into the core.

Paulo Matos added a comment - 09/Jul/09 12:20 AM - edited
This link might be relevant, and points to discussion as well.

Paulo Matos added a comment - 09/Jul/09 12:37 AM
Since this things tend to disappear over time, attached XSLT solution (referred above) and (still) available at
http://online.waikato.ac.nz/wcel/development/forum-archive/forum-archive.zip

Paulo Matos added a comment - 09/Jul/09 12:43 AM - edited
In the screenshot you can see an example of output done by XSLT (forum-archive).

Dean Stringer added a comment - 09/Jul/09 05:45 AM
Hey folks. I'm the author of the XSLT solution Joseph and Paulo mention above. If you are interested in pursuing this approach keep in contact with me, I would be happy to help extend or alter our XSLT to suit what you plan to do. I realise much of this change will really be UI changes in Moodle to allow a teacher to do the export without having to resort to command-line magik, but there are some things I would change in the actual XSLT to make the render a little more flexible.

There is also a need for an XSLT processor. PHP4 no longer ships with an XSLT engine built-in, but PHP5 is usually configured with libxslt support so it should be possible to do the transform as a PHP request within Moodle. The breadth of support for this would need to be checked tho. Another thing to note is the script would need to trigger a course backup or know when backups are complete for the course, it would also read access to the folder the moodle backups are written to (as that is what it processes to generate the forum output).


Joseph Rézeau added a comment - 10/Jul/09 11:59 PM
Hi Dean and Paulo,
I'm away from home at the moment, but am still interested in pursuing this forum export thread. Will look at it a little later in the month and report my findings here.
Joseph

Debra Burdick added a comment - 29/Jul/09 06:09 AM
This is TOTALLY AWESOME thanks so much for your contributions. We are using the "heck" outta this. Great way to archive valuable forums and share with other classes. You guys ROCK!