Moodle Plugins directory: Individual ZIP Download Activity: Versions: v1.0 | Moodle.org
Individual ZIP Download Activity
Individual ZIP Download Activity v1.0
ZIP Download Activity Plugin for Moodle
Personalized Code Distribution for Lab-Based Programming Courses
This Moodle activity plugin allows teachers to upload a ZIP template containing .c
and .h
files (including subfolders) and one or more Makefile
s. When a student accesses the activity, a personalized ZIP file is generated and downloaded. The plugin automatically replaces placeholders like @author
and 00000
with the student’s full name and ID.
It is ideal for courses that require distributing lab starter code, such as embedded systems, robotics, or microcontroller programming.
What It Does
- Teachers upload a ZIP template when creating the activity.
- The ZIP may include subfolders,
.c
/.h
files, and one or moreMakefile
s. - On student access:
@ Firstname Lastname
is inserted where@Author TODO
was used."00000"
is replaced with the student’s ID.Makefile
s are modified based on the student’s platform selection.- A personalized ZIP is generated instantly for download.
Platform Selection
When the student clicks the activity:
- They are prompted to select their platform:
- Lab → PORT=/dev/ttyUSB_MySmartUSB
- Windows → PORT=COM3
- Mac → PORT=/dev/tty.SLAB_USBtoUART
- All Makefile
files are automatically updated with the selected PORT
value.
- The generated ZIP file is renamed to reflect the student and platform:
- Templates-12345-Lab.zip
- Templates-12345-Win.zip
- Templates-12345-Mac.zip
Installation
- Unzip this plugin into the
mod
directory of your Moodle installation: /path/to/moodle/mod/zipdownload - Visit Site Administration > Notifications to complete installation.
Creating the Activity
- In your Moodle course, turn editing on and Add an activity.
- Choose ZIP Download.
- Upload your ZIP template containing
.c
/.h
files andMakefile
s. - Save and return to the course.
Student View
- Students click the activity and select their platform.
- The plugin processes the uploaded ZIP template:
- Replaces author and ID placeholders
- Edits
Makefile
s with platform-specific ports - A personalized ZIP file is downloaded immediately.
Authors
Ivan Volosyak
Tangat Baktybergen
License
GNU GPL v3 or later
Developed at Rhine-Waal University of Applied Sciences (HSRW), Kleve, Germany.
Version information
- Version build number
- 2025072703
- Version release name
- v1.0
- Maturity
- Versió estable
- MD5 Sum
- 0afbeb5a8eab23e4b159a230b1bbd64f
- Supported software
- Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0
- Latest release for Moodle 4.1
- Latest release for Moodle 4.2
- Latest release for Moodle 4.3
- Latest release for Moodle 4.4
- Latest release for Moodle 4.5
- Latest release for Moodle 5.0
Version control information
- Version control system (VCS)
- Other...
- VCS repository URL
Default installation instructions for plugins of the type Activities
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "assignment") in the "mod" subdirectory.
- Visit http://yoursite.com/admin to finish the installation