Course schedules

Blocks ::: block_horario
Maintained by Picture of José Puente FuentesJosé Puente Fuentes
Restrict/allow access to course over a range of time.
Latest release:
149 sites
25 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


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

Comments RSS


  • Picture of David Mudrák
    Wed, Dec 14, 2016, 9:46 PM

    Thanks José for the updated version of the block. I was able to successfully test the functionality again and I left some suggestions for your consideration into your tracker. I found the code well structured and designed, making it easy to follow, unit-test and debug eventually. Well done on that. I am happy to approve this now, welcome to the Plugins directory!

  • Picture of José Puente Fuentes
    Tue, Dec 20, 2016, 6:21 AM
    Hi David,
    thank you very much for your comments, I really appreciate it.
    I've made the changes that you recommended and I've updated plugin.

  • Picture of Dinis Medeiros
    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);
  • Picture of José Puente Fuentes
    Wed, Dec 21, 2016, 10:28 AM
    Thank you Dinis,
    that change is included in new revision

  • Picture of Dinis Medeiros
    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
  • Picture of José Puente Fuentes
    Thu, Dec 22, 2016, 3:44 AM
    thank you Dinis!

  • Picture of Irakli Kurdiani
    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
  • Picture of José Puente Fuentes
    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

  • Picture of Andrew O'Brien
    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!
  • Picture of José Puente Fuentes
    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.
  • Picture of Andrew O'Brien
    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!
  • Picture of José Puente Fuentes
    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,
  • Picture of Aditya Dubay
    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?
  • Picture of José Puente Fuentes
    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.
  • Picture of Javad Soltani
    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
Please login to post comments