Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68041

New theme settings for secure layout - display lang menu and display logged-in user

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-68041-master-rev2
    • Hide

      As there are not many ways to view a secure page layout in Moodle by default, here is one method to test.

       

      1. The site must have some additional languages set, navigate to Site administration / Language / Language packs, and add any number of extra languages. (admin/tool/langimport/index.php)

      2. The following settings must be enabled in Site administration / Language / Language settings (admin/settings.php?section=langsettings)

      • Display Language Menu

       3. Enable the new settings in Site administration / Appearance / Themes / Theme settings  (admin/settings.php?section=themesettings)

      • langmenuinsecurelayout
      • logininfoinsecurelayout

      4. Create a course

      5. Create a quiz with Browser security set to Full screen pop-up with some JavaScript security

      6. Attempt the quiz. It is now possible to test the settings on the quiz view page.

       

      If logininfoinsecurelayout is enabled, the user name will be visible in the top right corner as 'You are logged in as [user full name]'.

      If langmenuinsecurelayout is enabled, a drop-down menu will be visible near the top left which allows the user to select different languages enabled.

      Show
      As there are not many ways to view a secure page layout in Moodle by default, here is one method to test.   1. The site must have some additional languages set, navigate to Site administration / Language / Language packs, and add any number of extra languages. (admin/tool/langimport/index.php) 2. The following settings must be enabled in Site administration / Language / Language settings (admin/settings.php?section=langsettings) Display Language Menu  3. Enable the new settings in Site administration / Appearance / Themes / Theme settings  (admin/settings.php?section=themesettings) langmenuinsecurelayout logininfoinsecurelayout 4. Create a course 5. Create a quiz with Browser security set to Full screen pop-up with some JavaScript security 6. Attempt the quiz. It is now possible to test the settings on the quiz view page.   If logininfoinsecurelayout is enabled, the user name will be visible in the top right corner as 'You are logged in as [user full name] '. If langmenuinsecurelayout is enabled, a drop-down menu will be visible near the top left which allows the user to select different languages enabled.

      As part of the integration deeper integration of Safe Exam Browser, we have a requirement to allow students to change language when solving a quiz restricted by SEB.

      We'd like to introduce new settings to make core secure mode a bit more flexible and let admins to enable/disable language selection and username display for secure view.

       

      The two new settings added are found in Appearance > Theme Settings.

      langmenuinsecurelayout, Display language menu in secure layout.

      logininfoinsecurelayout, Display logged-in user in secure layout.

       

      This has the added benefit of allowing the user to change the language when the page layout set to secure. Also for the current logged in user's name to be displayed in the top right corner of the screen.

      As there are options to show the username during a quiz attempt itself, this will allow the name to be present on the view, review, summary and any other page on the site when the secure page layout is set.

      The language selection menu is new function core_renderer->secure_layout_language_menu(), this renders a custom_menu(), yet without passing any $custommenuitems only the language selection will be displayed.

            nhoobin Nicholas Hoobin
            dmitriim Dmitrii Metelkin
            Dmitrii Metelkin Dmitrii Metelkin
            Jun Pataleta Jun Pataleta
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 30 minutes
                5h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.