Blocks: Course schedules

block_horario
Maintained by Picture of José Puente FuentesJosé Puente Fuentes
Restrict/allow access to course over a range of time.
114 sites
59 downloads
20 fans
Moodle 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4

Restrict/allow access to course over a range of time 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 time range.
  • Allow user access in a time range.

To create a course schedule block, turn editing on. Add the block "Course Schedule". Click Settings and select:

  • Scheduling mode: allow or deny access in the selected time range
  • Cohort(s) to which it is applied
  • Week days
  • Schedule
  • Show block: show or hide schedule information to students
  • Common settings: You must select "All pages" in "Where this block appears" option to disable access in all course pages.

A management area allows managing all blocks together from the platform admin block, as well as from each schedule block.

Potential privacy issues

https://github.com/JosePFs/moodle-block_horario

Screenshots

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

Contributors

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

Comments RSS

Show comments
  • Picture of José Puente Fuentes
    Thu, Oct 27, 2016, 5:49 PM
    Ok,
    Thank you very much David.
  • 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.

    Regards
  • 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

    Regards!
  • 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
    Ok,
    thank you Dinis!

    Changed
  • 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

    Regards!
  • 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.
    Regards!
  • 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,
    Regards
  • 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:
    https://docs.moodle.org/35/en/Restrict_access_settings.
    Check it out and ley me know if you need some help.
    Regards!
1 2
Please login to post comments