Guestcourses

Blocks ::: block_guestcourses
Maintained by Andreas Schenkel
Block that lists courses that supports guestlogin

Guestcourses v2.0.1

Moodle 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 4.0
Released: Tuesday, 3 May 2022, 3:47 AM

moodle-block_guestcourses

1. and 2. choice in feedback-generator

A: How to use

B: Settings

C: Capabilitys

D: Changelog

E: Installing via uploaded ZIP file

F: Installing manually

A: How to use

Block that shows a list of all courses with enrolmentmethod guest.

A key-icon indicates if a guestaccesskey is needed.

image

See chapter settings to get information about the configuration.

B: Settings

image

  • show guestcourselist (set true, if the guestcourses should be listed)
  • show invisible (set true, if invisible courses should be added in the list)
  • Show guestcourses without login (by default only logged in users can see the list. set true, if not logged in users should see the guest course list)

C: Capabilitys

C1: 'block/guestcourses:myaddinstance'
not set to any role

C2: 'block/guestcourses:addinstance'
not set to any role
only siteadmin is allowed to add block


C3: 'block/guestcourses:viewcontent'
'user' => CAP_ALLOW,


C4: 'block/guestcourses:viewinvisible'
not set to any role
only siteadmin is allowed to view invisible hidden courses

D: Changelog

v1.0.2

20220120 - some text strings defined correctly - don't show block when capability is missing - use core_course_category::get_courses() to find alle courses

20220110

  • bug missing initialisation of variable

v1.0.1 beta - change footer - indicator for visibility of course instead of text - some languagestrings are missing

v1.0.0 initial

E: 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.

F: Installing manually

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

{your/moodle/dirroot}/blocks/guestcourses

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

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 https://www.gnu.org/licenses/.

Version information

Version build number
2022050201
Version release name
v2.0.1
Maturity
Beta
MD5 Sum
6bb383efaaec9ec0eed2044852ce2038
Supported software
Moodle 3.4, Moodle 3.5, Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11, Moodle 4.0
  • Latest release for Moodle 3.4
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10
  • Latest release for Moodle 3.11
  • Latest release for Moodle 4.0

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v2.0.1

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit http://yoursite.com/admin to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.