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:
849 sites
518 downloads
60 fans
Current versions available: 3

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 Assignment, Book, Choice, Custom certificate, Etherpad lite, File resource, Folder, H5P, Page, Poster, SCORM, and URL activities are supported and can be displayed in modals. Other activities will open normally.

The current version has an optional integration with the Deft response block to provide real time updates to the course page. If the block is installed and enabled, changes to module availability and completion will appear on course page whenever they occur without user interaction.

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

Rezulton rimarka
  • John Anderson
    me, 27 de apr 2022, 05:13
    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!
  • Daniel Thies
    me, 27 de apr 2022, 12:22
    @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.
  • John Anderson
    me, 27 de apr 2022, 20:16
    Thank you @Daniel ! I saw those classes - will try
  • Konrad Jakielaszek
    me, 12 de apr 2023, 15:56
    Hi, version 1.0.13 (2022040309) cannot be installed on Moodle 3.11, because it requires Moodle [2022030300]
  • Daniel Thies
    sa, 15 de apr 2023, 00:58
    I had the entry set incorrectly. It should not so for 3.11 anymore. The newer features are only supported on 4.0+ at the moment. There was a big change in course formats in 4.0, so I will not likely back port them.
  • Sokunthearith Makara
    me, 3 de maj 2023, 11:54
    Hi @daniel,
    I noticed that the modal title doesn't support multi-lang filter (probably other filters as well). Do you have a plan to enable this support?
  • Daniel Thies
    ĵa, 4 de maj 2023, 20:31
    Thanks Sokunthearith, you are correct that needs to be done. I will try to release a fix soon.
  • Sokunthearith Makara
    ve, 5 de maj 2023, 11:25
    Hi @daniel,
    I confirmed the new update fix the filter issue. Thanks for fixing this so quickly.
  • Mike Smith
    ĵa, 21 de sep 2023, 07:57
    Hi Daniel,

    This is strange. I installed this plugin in my local Moodle but when I click Folder and Page, they don't show up in modal pages. What is going on?
  • Marco Bennardo
    sa, 23 de sep 2023, 00:30
    Hi @Daniel
    If I setup scorm with "Student skip content structure page: always" option I get redirecterrordetected error.
  • Daniel Thies
    sa, 30 de sep 2023, 20:07
    @Mike that may be an issue with permissions. I think by default students see the popup and teachers do not. It could also be you have a js error. Look in the browser console to see if something is reported.
  • Daniel Thies
    di, 1 de okt 2023, 00:43
    @Marco I just released a new version that should fix that bug and handle starting new SCORM attempts. SCORM has a lot of options that I have not used; so I am not sure that they are well tested. Please let me know if you have more problems.
  • Gregory Bakke
    lu, 13 de nov 2023, 18:56
    Hello! Any chance of a 'Mark As Done' button being added to the modal window?
    All the best
    Greg
  • Daniel Thies
    sa, 2 de dec 2023, 10:41
    Hi Gregory,
    In the course settings if you set Show completion on course page to no, it will appear in the show in the modal instead. It seemed redundant to have it in both places. I think that makes sense except for manual completion. I would be handy to mark completion with out having to close the modal. I suppose there should be a setting in the course or site settings.
  • Gregory Bakke
    sa, 30 de dec 2023, 21:23
    Hi Daniel,

    Thank you for the reply. I have looked three times for this option in course settings and could not find it.

    For our use case, in an ideal world, it could show both buttons on modal and also in course view - My thought for this is so a teacher can click 'done' in the modal, close the window and easily view the next activity. by seeing which is the next one to be checked. I'll keep having a look or perhaps you could drop me a message if you have an idea.

    Thank you, happy new year.
    Greg
1 2
Please login to post comments