1 |
efrain |
1 |
# Availability relative date
|
|
|
2 |
|
|
|
3 |
Restrict module and section access based on relative dates.
|
|
|
4 |
|
|
|
5 |
## Idea
|
|
|
6 |
|
|
|
7 |
This availability condition makes it easy to show modules or sections only x days/weeks/months
|
|
|
8 |
- before / after course start date (THX to Frederik Milling Pytlick)
|
|
|
9 |
- before / after course end date
|
|
|
10 |
- after user enrolment date
|
|
|
11 |
- after end of enrolment period
|
|
|
12 |
- after the completion of an activity (THX to Stefan Hanauska and Daniel Poggenpohl)
|
|
|
13 |
|
|
|
14 |
## Conditional availability conditions
|
|
|
15 |
|
|
|
16 |
Check the global documentation about conditional availability conditions:
|
|
|
17 |
https://docs.moodle.org/en/Conditional_activities_settings
|
|
|
18 |
|
|
|
19 |
## Requirements
|
|
|
20 |
|
|
|
21 |
This plugin requires Moodle 4.2+
|
|
|
22 |
|
|
|
23 |
## Installation
|
|
|
24 |
|
|
|
25 |
Install the plugin like any other plugin to folder /availability/condition/relativedate
|
|
|
26 |
See https://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins
|
|
|
27 |
|
|
|
28 |
## Initial Configuration
|
|
|
29 |
|
|
|
30 |
This plugin does not need configuration after installation.
|
|
|
31 |
|
|
|
32 |
## Theme support
|
|
|
33 |
|
|
|
34 |
This plugin is developed and tested on Moodle Core's Boost theme and Boost child themes, including Moodle Core's Classic theme.
|
|
|
35 |
|
|
|
36 |
## Plugin repositories
|
|
|
37 |
|
|
|
38 |
This plugin will be published and regularly updated on Github: https://github.com/ewallah/moodle-availability_relativedate
|
|
|
39 |
|
|
|
40 |
## Bug and problem reports / Support requests
|
|
|
41 |
|
|
|
42 |
This plugin is carefully developed and thoroughly tested, but bugs and problems can always appear.
|
|
|
43 |
Please report bugs and problems on Github: https://github.com/ewallah/moodle-availability_relativedate/issues
|
|
|
44 |
We will do our best to solve your problems, but please note that due to limited resources we can't always provide per-case support.
|
|
|
45 |
|
|
|
46 |
## Feature proposals
|
|
|
47 |
|
|
|
48 |
Please issue feature proposals on Github: https://github.com/ewallah/moodle-availability_relativedate/issues
|
|
|
49 |
Please create pull requests on Github: https://github.com/ewallah/moodle-availability_relativedate/pulls
|
|
|
50 |
We are always interested to read about your feature proposals or even get a pull request from you, but please accept that we can handle your issues only as feature proposals and not as feature requests.
|
|
|
51 |
|
|
|
52 |
## Moodle release support
|
|
|
53 |
|
|
|
54 |
This plugin is maintained for the latest major releases of Moodle.
|
|
|
55 |
|
|
|
56 |
## Status
|
|
|
57 |
|
|
|
58 |
[](https://github.com/ewallah/moodle-availability_relativedate/actions)
|
|
|
59 |
[](https://coveralls.io/github/ewallah/moodle-availability_relativedate?branch=main)
|
|
|
60 |
|
|
|
61 |
## Copyright
|
|
|
62 |
|
|
|
63 |
2024 eWallah.net
|
|
|
64 |
|
|
|
65 |
This program is free software: you can redistribute it and/or modify it under
|
|
|
66 |
the terms of the GNU General Public License as published by the Free Software
|
|
|
67 |
Foundation, either version 3 of the License, or (at your option) any later
|
|
|
68 |
version.
|
|
|
69 |
|
|
|
70 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
71 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
72 |
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
73 |
|
|
|
74 |
You should have received a copy of the GNU General Public License along with
|
|
|
75 |
this program. If not, see <https://www.gnu.org/licenses/>.
|