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:
968 sites
555 downloads
63 fans
Current versions available: 4

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

コメントを表示する
  • John Anderson
    2022年 04月 27日(水) 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
    2022年 04月 27日(水) 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
    2022年 04月 27日(水) 20:16
    Thank you @Daniel ! I saw those classes - will try
  • Konrad Jakielaszek
    2023年 04月 12日(水) 15:56
    Hi, version 1.0.13 (2022040309) cannot be installed on Moodle 3.11, because it requires Moodle [2022030300]
  • Daniel Thies
    2023年 04月 15日(土) 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 "T" Makara
    2023年 05月 3日(水) 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
    2023年 05月 4日(木) 20:31
    Thanks Sokunthearith, you are correct that needs to be done. I will try to release a fix soon.
  • Sokunthearith "T" Makara
    2023年 05月 5日(金) 11:25
    Hi @daniel,
    I confirmed the new update fix the filter issue. Thanks for fixing this so quickly.
  • Mike Smith
    2023年 09月 21日(木) 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
    2023年 09月 23日(土) 00:30
    Hi @Daniel
    If I setup scorm with "Student skip content structure page: always" option I get redirecterrordetected error.
  • Daniel Thies
    2023年 09月 30日(土) 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
    2023年 10月 1日(日) 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
    2023年 11月 13日(月) 18:56
    Hello! Any chance of a 'Mark As Done' button being added to the modal window?
    All the best
    Greg
  • Daniel Thies
    2023年 12月 2日(土) 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
    2023年 12月 30日(土) 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