Course schedules

Blocks ::: block_horario
Maintained by José Puente Fuentes
Restrict/allow access to course over a range of time.
Latest release:
154 sites
26 fans
Current versions available: 2

Restrict/allow access to course when the block is located in the course using cohorts.

Student must be in the selected system cohort(s) to control course access. If student isn't in selected system cohort(s), access is granted by default. Schedule is set using week days, hours and minutes.

There are two modes:

  • Restrict user access in a date range.
  • Allow user access in a date range.

Steps to follow:

  1. Create a course schedule block, turn editing on, and add the block "Course Schedule".
  2. Click Settings and select:
    • Scheduling mode: allow or deny access in the selected time range
    • Cohort to which it is applied
    • Week days
    • From/to hours
    • Show block: show schedule information or not to students when they access to the course
    • Where this block appears Display on page types: Any page. This ensures that the student cannot access any child page in the course
    • On this page Visible: Yes

In the "Admin courses schedules" link within the block, it is possible to configure all the blocks added to the platform.

Potential privacy issues


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


José Puente Fuentes (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Tue, Dec 20, 2016, 11:37 PM
    Thanks José.
    It will be good idea add a space after comma in list of days in block.
    Change sunday,monday... to sunday, monday...
    I did it changing plugin_config.php
    public function get_week_days() {
    return implode(', ', $days);
  • Wed, Dec 21, 2016, 10:28 AM
    Thank you Dinis,
    that change is included in new revision

  • Thu, Dec 22, 2016, 2:37 AM
    Last version says, on top of this page, Release v2.0-r5 but in file version.php still v2.0-r4
  • Thu, Dec 22, 2016, 3:44 AM
    thank you Dinis!

  • Mon, Nov 6, 2017, 7:56 PM
    hi! i instaled plugin on my moodle site, it installed successfully but settings are not avalable therefore i'm not able to use this plugin. can you heplp me with it?
    thank you
  • Tue, Nov 7, 2017, 4:02 AM
    Hi Irakli!,
    happy to solve your doubts.
    In the course that you want to add the schedule you must activate the edition. Then you must add the block using the button that usually appears in a side panel.
    Once the block appears, click on the gear so that the options appear, you must select "Configure block course schedules".
    You add the cohorts and schedules, etc, and it is important that you select that the block appears on all the pages so that the student can not access
    Once configured, you will have a link to configure all the configured time blocks and you can also access it from Site -> administration -> Plugins -> Blocks -> Course schedules.
    I hope it helps.
    If you do not solve it, contact again so I can guide you step by step

  • Tue, Jan 9, 2018, 6:19 PM
    I've installed this plugin on a Moodle 3.4+ site and added the block to a course page. When I want to select cohorts, there is only a list of about 30 available and I can't access all of the cohorts we have (we have a cohort for every class in the school). Am I missing something? Manythanks!
  • Thu, Jan 11, 2018, 7:01 AM
    Hi Andrew,
    Currently the plugin is not available for this version because I have not yet had time to test for that 3.4+ version.
    I will update and test the plugin shortly.
    Please, apologize for the inconvenience and the new version compatible with 3.4+ will be available very soon.
  • Mon, Jan 15, 2018, 5:51 PM
    Wow... updated version available this morning: installed, tested and working. Thank you very, very much! Saves me a headache to start the week giving time restricted access to a course. Just fantastic!
  • Tue, Jan 16, 2018, 7:05 AM
    Hi Andrew,
    Due to comments like yours it is worth taking the time to collaborate in these projects.
    Thank you very much,
  • Tue, Aug 14, 2018, 7:37 PM
    Great Work José smile
    Really useful.
    José I am looking for something like this for quiz where I can schedule quiz activity like this:
    Quiz Opens
    Date From: 14/08/2018
    Date To: 18/08/2018
    Time From: 07:00
    Time To: 20:00
    Means quiz open only in particular time frame daily.
    Can you help?
  • Tue, Aug 14, 2018, 10:38 PM
    Thank you Adytia!
    I think that functionality is already acomplished by Activities rectrictions:
    Check it out and ley me know if you need some help.
  • Mon, May 18, 2020, 6:54 PM
    Thanks José, in moodle 3.8 it doesn't work. could you please check it and upload a new version of plugin
  • Fri, Jul 9, 2021, 5:54 PM
    hi, it works with 3.10?
  • Fri, Sep 17, 2021, 4:43 AM
    Exactly what i want however... i get this message any help please

    Coding error detected, it must be fixed by a programmer: Function get_categories() is removed. Please use appropriate functions from class core_course_category
Please login to post comments