Moodle plugins directory: Course schedules | Moodle.org
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:
- Create a course schedule block, turn editing on, and add the block "Course Schedule".
- 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.
Useful links
Contributors
José Puente Fuentes (Lead maintainer)
Please login to view contributors details and/or to contact them
https://integration.moodle.org/job/Precheck%20remote%20branch/28159/artifact/work/smurf.html
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!
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!
If you believe you are done with all fixes, please use the button "Request re-approval" to get the plugin back into the queue.
We just hide the old versions here in the Plugins directory, they are kept archived for eventual later reference
Thank you very much David.
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!
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
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);
that change is included in new revision
Regards!