Course schedules

Blocks ::: block_horario
Maintained by José Puente Fuentes
Restrict/allow access to course over a range of time.
Latest release:
179 sites
264 downloads
31 fans
Current versions available: 3

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

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

Screenshots

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

Contributors

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

Comments RSS

Comments

  • David Mudrák
    Wed, 26 Oct 2016, 3:35 PM

    Thanks José for sharing the block with the community. I like the idea of the plugin and the trick it uses to eventually block the user from accessing the course. While testing the block functionality and reviewing the code, I spotted some tiny bits that should be fixed before the plugin is approved here. Please see your issues tracker for details. Looking forward the updated version with fixes!

  • José Puente Fuentes
    Thu, 27 Oct 2016, 10:08 AM
    Thank you David,
    I've upload new version with corrections that you mentioned.
    I hope that this version fix all problems.
    By the way, it is posible remove old plugin version when was already uploaded and are hidden now?
    Thank you again!
  • David Mudrák
    Thu, 27 Oct 2016, 3:31 PM

    I've upload new version with corrections that you mentioned.

    If you believe you are done with all fixes, please use the button "Request re-approval" to get the plugin back into the queue.

    posible remove old plugin version

    We just hide the old versions here in the Plugins directory, they are kept archived for eventual later reference

  • José Puente Fuentes
    Thu, 27 Oct 2016, 5:49 PM
    Ok,
    Thank you very much David.
  • David Mudrák
    Wed, 14 Dec 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!

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

    Regards!
  • Dinis Medeiros
    Thu, 22 Dec 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
Please login to post comments