Pop up activities

Course formats ::: format_popups
Maintained by Daniel Thies
The Pop up activities course format displays resources and simple activities embedded in modals instead of redirecting from the course page.

Pop up activities 1.0 Beta

Moodle 3.10, 3.11
Released: Monday, 12 April 2021, 9:16 PM

Pop up activities format

The Pop up activities course format displays resources and simple activities embedded in modals instead of redirecting from the course page.

If you are not using heavy server side assessment, but mostly resources and client side activities (SCORM, H5P), this format may help provide more interactive courses by opening the activities in popup modals instead of separate web pages. When students finish an activity or resource, they return to the course page by closing the modal without waiting for the course page to load again.

This plugin uses javascript to add AJAX functionality to the standard topics format. Otherwise the format is the same as topics format. Currently Book, Choice, Custom certificate, File resource, Folder, H5P, Page, Poster, SCORM, and URL activities are supported and can be displayed in modals. Other activities while open normally.

Developers should be able to add similar functionality to other formats by copying the AMD call in format.php and adding this format as a dependency.

Installing via uploaded ZIP file

  1. Log in to your Moodle site as an admin and go to Site administration > Plugins > Install plugins.
  2. Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
  3. Check the plugin validation report and finish the installation.
  4. The capability format/popups:view is given to the student role and controls whether an individual user sees an activity as a modal or in the standard view. Add this to any other role you would like to see the modals.
  5. When a course is created select this format from the menu in the Course format setting and then add the some of the supported activities to the course.

Installing manually

The plugin can be also installed by putting the contents of this directory to

{your/moodle/dirroot}/course/format/popups

Afterwards, log in to your Moodle site as an admin and go to Site administration > Notifications to complete the installation.

Alternatively, you can run

$ php admin/cli/upgrade.php

to complete the installation from the command line.

License

2021 Daniel Thies

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see .

Version information

Version build number
2021040405
Version release name
1.0 Beta
Maturity
Beta
MD5 Sum
b6427bb824a58661be888fef5acdbb8a
Supported software
Moodle 3.10, Moodle 3.11

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Course formats

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