Individual ZIP Download Activity

Activities ::: mod_zipdownload
Maintained by Tangat Baktybergen, Ivan Volosyak
This Moodle plugin generates personalized zip templates by automatically replacing @author and student ID placeholders in C code with individual student data. It also modifies makefiles automatically based on the selected operating system.

Individual ZIP Download Activity v1.0

Moodle 4.1, 4.2, 4.3, 4.4, 4.5, 5.0
Released: dijous, 31 de juliol 2025, 2:03 PM

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 Makefiles. 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 more Makefiles.
  • On student access:
    • @ Firstname Lastname is inserted where @Author TODO was used.
    • "00000" is replaced with the student’s ID.
    • Makefiles 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: - LabPORT=/dev/ttyUSB_MySmartUSB - WindowsPORT=COM3 - MacPORT=/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

  1. Unzip this plugin into the mod directory of your Moodle installation: /path/to/moodle/mod/zipdownload
  2. Visit Site Administration > Notifications to complete installation.

Creating the Activity

  1. In your Moodle course, turn editing on and Add an activity.
  2. Choose ZIP Download.
  3. Upload your ZIP template containing .c/.h files and Makefiles.
  4. 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 Makefiles 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
Stable version
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

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "assignment") in the "mod" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation