"Export a whole discussion" | how?

Re: "Export a whole discussion" | how?

by Longfei Yu -
Number of replies: 2

Kristi, 

I believe you are talking about "download all instructor files".

Yes, it looks bit odd, but definitely works. I just wanted to minimize the code change and tried to reuse the existing functions for "download assignment submission" in the assignment module. In order to make "/mod/assign/view.php" work properly, I had to specify a random assignment ID (actually it is the minimum assignment ID in your Moodle system. I believe any Moodle system should have at least assignment). The assignment ID is static, but the course ID is definitely dynamic, which is the course you are currently in. 

We use this feature from our 2.5, 2.8, and now on 3.0. This customization also has been used by other institutions successfully. 

I am not sure which Moodle version you are using now, for different version, probably there will be slight difference. Let me know if I can help.

But, anyhow, here is the link for Moodle 3.0: 

https://bitbucket.org/umasslms/umass-moodle-public/commits/03f9aca007ac5026c059326e69f045e183856a5a?at=master






In reply to Longfei Yu

Re: "Export a whole discussion" | how?

by i an -
Picture of Plugin developers

Thanks for this, I've installed on a  Moodle 3.0.4+ (Build: 20160707) build but it's not finding any files, we get "No files have been found to download from this course. (This tool does not export student submissions, it only exports files added by Teachers and Course Designers.)"

I have had a play with the SQL and can get it to find some files changing various bits so I'm guessing this is probably the reason it's finding nothing, any ideas on what we can change or update in the query?

In reply to i an

Re: "Export a whole discussion" | how?

by i an -
Picture of Plugin developers

After more testing I've noticed that some courses do work whilst others do not, there seems to be no difference between the courses, the size and content seems to be irrelevant.