## Blocks: Course Archiving

block_eledia_course_archiving
Maintained by Benjamin Wolf
This plugin archives or delete courses from chosen categories depending on their start date.
54 sites
8 fans

The plugin is developed to archive courses once a term an remove the archived courses from the term before. The Process of archiving has to be started manually and has a confirmation form before it begins with any changes. The timespan in days, of the past term, can be configured within the plugin configuration.

Archiving means the course will be set invisible, moved to the configured archive category and all student users will be unenroled.
The same process deletes old courses in the archive category. The old courses will be deleted if there course begin is before the chosen timespan.

NOTE: In Github we use an empty master branch. The different plugin versions can be found in special branches for each Moodle version.

### Contributors

Benjamin Wolf (Lead maintainer)
Please login to view contributors details and/or to contact them

• Thu, 14 Nov 2013, 3:35 PM
On 10/31/2013 02:03 AM - Aparup Banerjee has commented on a plugin submission that hasn't been approved:

Thanks for sharing this. Its installed fine here on 2.5. You may want to
include 2.6 too.

ps: I tried to configure and then see the block but i couldn't see anything
there yet, perhaps i missed a step somewhere?
• Tue, 19 Nov 2013, 10:07 AM
i've re-updated this to point tracker issues url to the tracker component. Thanks for re-submitting this, re-approving.
• Fri, 14 Nov 2014, 1:09 AM
I'm excited about the potential for this plugin! I do have a question (or a wishlist item) , though:

For us, we consider an Archive of a course to be a snapshot in time and is usually done at the end of a course. Because it's a snapshot in time, it needs to contain all of the students. Once the students are removed, we would consider it just a backup and not an archive. Do you think you might be able to add an option to KEEP students enrolled in the course?

Thanks!
• Tue, 24 Feb 2015, 5:44 PM
Hi Benjamin, this plugin looks really cool and it suits with what I was looking for.
Are you going to release also the 2.8 version? is it supported? Thanks in advance!
• Fri, 27 Feb 2015, 11:36 PM
I just tested it in 2.8. There are no changes within the used moodle functions. So it update the version information to support 2.8.
Thanks for your feedback.
• Tue, 10 Mar 2015, 10:58 PM
Thanks for your answer Benjamin. Can I also ask you if it is possible not to uneroll students with this plugin? I have the same issue than Blair.
• Wed, 13 May 2015, 12:39 AM
I installed it on a 2.6 system, but I can't get it to show up on the front page. Are there any dependencies that I should be aware of? This is a vanilla, newly-built 2.6 system.
• Tue, 26 May 2015, 7:15 PM
Are you sure you try to add it on the front page and not on the my page? The Block is not allowed on the my page now.

When you turn editing on on the front page, you should find it in the dropdown menü to "Add a block" under the name "Course Archiving".

There are no dependencies to other plug-ins.
• Sun, 5 Feb 2017, 2:40 AM
Hi. Thanks for the plugin but i'm having a problem.
In my config.php, the prefix of tables isn't mdl_ I have: $CFG->prefix = 'mdlvn_'; In some lines of the code you have:$sql = 'SELECT * FROM mdl_course. It causes the error: Table '....mdl_course' doesn't exist
Is there a chance to change the code to workaround this issue? THANK you.
• Sun, 5 Feb 2017, 3:01 AM
Is there a chance to add this option:
When confirm Archiving and the number of course to be archieved and / or to be deleted is zero say something like: Nothing to delete or archive
• Tue, 14 Feb 2017, 9:04 PM
Thanks for reporting this. I replace the explicit table names now with the moodle place holder. So the correct prefix will always be added.
I also added a text string for the case that both lists(archive and delete) are empty.

You can find it in the new version uploaded today or the git branches for 31 and 32.