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.
Latest release:
748 sites
735 downloads
40 fans
Current versions available: 2

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 will 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.

A demonstration course is available at https://openlearner.org/popups.

Testing status

Screenshots

Screenshot #0

Contributors

Daniel Thies (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Mon, Apr 12, 2021, 9:40 AM
    Approval issue created: CONTRIB-8485
  • Mon, Jul 12, 2021, 9:15 PM
    Hi Daniel. Awesome idea for a plugin! I tested things out and found that it does not show the links to a course with guest access off and self enrollment enabled. We use cohort self enrollment all the time so this would be awesome if that worked with it. Seems to work fine with auto-enrollment and guest access enabled courses.

    I also went ahead and tested if someone deletes a course that was linked in this activity. The course with the activity completely breaks the course. I was wondering if there was a way for the plugin to just warn the teacher that the activity needs attention instead of error out on page load?
  • Mon, Jul 12, 2021, 10:51 PM
    Hi Jeff,
    I am not understanding your question and how enrollment would affect this plugin. Did you mean to comment about a different plugin? Maybe mod_courselinks?
  • Fri, Jul 16, 2021, 9:01 AM
    Hi, we found bug in neweset version, tested in Moodle 3.11.1, in a course we are not able to add block and to hide topic, if we click that menu (to add block and to hide topic), nothing happen

    If we change to other format, we can do that. change again to this format, we can't

    We found the problem only exist to all menu using sesskey (add block, hide topic, etc).
  • Fri, Jul 16, 2021, 12:22 PM
    Thank you Pak for reporting that. I added a new release to fix that that. Let me know if you have anymore problems after the upgrade.
  • Fri, Jul 16, 2021, 4:19 PM
    confirm the newest code is fix above problem, thank you so much
  • Wed, Apr 27, 2022, 5:13 AM
    Thank you Daniel Thies, others, installed and love these modal pop-ups, for most resources / activities. Could I hack this module to support only some of the resources & activities ? Comment out some code. Another thought, it might be cool to have a configuration to select the resources & activities you want to go modal when the learner clicks. Maybe even at the course level, but Course Format level would be pretty cool.

    Thank you!
  • Wed, Apr 27, 2022, 12:22 PM
    @John There is a capability which is checked in the module context. You can control whether particular activities pops up by removing the permission from the student role for that capability in the users permissions on the module page. The code for each activity type is in a separate file in classes/local. I think you can remove the corresponding file and clear cache to prevent a type from popping up site wide.
  • Wed, Apr 27, 2022, 8:16 PM
    Thank you @Daniel ! I saw those classes - will try
Please login to post comments