<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Moodle Plugins directory: Restriction by relative date: Comments</title>
    <link>https://moodle.org</link>
    <description>Restrict module and section access based on a relative date.</description>
    <generator>Moodle</generator>
    <language>en</language>
    <copyright>(c) 2026 Moodle - Open-source learning platform | Moodle.org</copyright>
    <image>
      <url>https://moodle.org/theme/image.php/moodleorg/core/1777401252/i/rsssitelogo</url>
      <title>moodle</title>
      <link>https://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <title>Wednesday, 15 October 2025, 4:50 PM - aziz vefa</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-88615</link>
      <pubDate>Wed, 15 Oct 2025 08:50:06 GMT</pubDate>
      <description>by aziz vefa. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Renaat. Thank you for your response. I tried it with v4.4.1 but it doesn't work with Moodle 4.4.4. I have 2 different installations. I'll submit an issue on bug tracker.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-88615</guid>
    </item>
    <item>
      <title>Wednesday, 15 October 2025, 3:33 PM - Renaat Debleu</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-88614</link>
      <pubDate>Wed, 15 Oct 2025 07:33:24 GMT</pubDate>
      <description>by Renaat Debleu. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Aziz, &lt;br&gt;
&lt;br&gt;
Please use the bug tracker to report issues.&lt;br&gt;
&lt;br&gt;
Because general support for Moodle 4.4 ended 21 April 2025, you can try to downgrade the plugin to version v4.4.1(2024042000).&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-88614</guid>
    </item>
    <item>
      <title>Wednesday, 15 October 2025, 12:17 PM - aziz vefa</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-88613</link>
      <pubDate>Wed, 15 Oct 2025 04:17:09 GMT</pubDate>
      <description>by aziz vefa. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Renaat. I was using the settings as you mentioned above for a long time, but as of today, after the last update, it is not working anymore. It doesn't recognize the completion date of the previous activity. The previous activity is an exam and the completion conditions are viewing the activity and receiving a passing grade that is 75%. When students fail, it should enable the next activity after 24 hours. I set 2 conditions; grade must be less than 75% and 24 hours after completion date of exam. But it's not working. I use Moodle 4.4.4 (Build: 20241007). We also have another Moodle 4.0.5 and using your plugin 4.1.1. They are working fine. The exam completion conditions are the same. But now, I see you say we must set the receiving grade to &quot;Any Grade&quot;. This affects our structure. If an exam is completed, it doesn't matter it is fail or pass. There is a completion date in both cases. So your plugin must take this date as the completion date. That's why combine it with passing grade restriction. &lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-88613</guid>
    </item>
    <item>
      <title>Tuesday, 7 October 2025, 9:48 PM - Renaat Debleu</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-88532</link>
      <pubDate>Tue, 07 Oct 2025 13:48:19 GMT</pubDate>
      <description>by Renaat Debleu. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;When you enable activity completion and configure the completion of your first exam to &quot;Receive a grade&quot; with &quot;Any grade&quot;, then you should be able to configure your second exam with 2 restrictions:  Grade lower than 50% AND 1 month after completion of Exam 1.&lt;br&gt;
As a result only people who do not pass the first exam will have access to the second exam, the others will not.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-88532</guid>
    </item>
    <item>
      <title>Monday, 6 October 2025, 7:22 AM - Çağrı Akkaya</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-88514</link>
      <pubDate>Sun, 05 Oct 2025 23:22:57 GMT</pubDate>
      <description>by Çağrı Akkaya. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Thanks for the reply. I realized I was a bit confused. What I actually need is to take into account the date the user took the first exam. I want the second exam to open a specified time after the user's first exam start date. In addition to the second exam requirement, I'll add a &quot;fail to pass&quot; condition. This way, if the user fails the first exam, the second exam will open a month later. If the user passes the first exam, the second exam won't open.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-88514</guid>
    </item>
    <item>
      <title>Friday, 3 October 2025, 10:48 PM - Renaat Debleu</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-88510</link>
      <pubDate>Fri, 03 Oct 2025 14:48:32 GMT</pubDate>
      <description>by Renaat Debleu. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;For a human being, it is easy to understand a sentence like: &quot;two hours after my teacher did not show up&quot;.  For a computer or a Moodle instance, this is far more difficult. Things that do not happen, are not recorded or do not have logs.&lt;br&gt;
&lt;br&gt;
So I would add 2 availability restrictions, one on the grade (smaller than passing grade) combined with a date or relative date depending on the start of the course.  How do you configure the availability of your first exam?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-88510</guid>
    </item>
    <item>
      <title>Friday, 3 October 2025, 6:54 PM - Çağrı Akkaya</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-88507</link>
      <pubDate>Fri, 03 Oct 2025 10:54:24 GMT</pubDate>
      <description>by Çağrı Akkaya. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;How can I ensure that if a user doesn't complete a module within the training, the second module will be unlocked after a certain period of time? If the user I need takes an exam and doesn't receive a passing grade, the exam will not be completed. The second exam requirement is that the user took the first exam but didn't receive a passing grade, and I want it to be unlocked one month later. I've configured the first exam to be incomplete because they didn't receive a passing grade. Can such a feature be added?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-88507</guid>
    </item>
    <item>
      <title>Monday, 3 June 2024, 10:42 PM - Renaat Debleu</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-83796</link>
      <pubDate>Mon, 03 Jun 2024 14:42:42 GMT</pubDate>
      <description>by Renaat Debleu. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;You cannot see &quot;after enrolment method end date&quot; because your enrolment has no end date configured (4 days after 0 will never happen) .&lt;br&gt;
You cannot see &quot;after completion of an activity&quot; because you did not enable completion tracking in your course (or site)&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-83796</guid>
    </item>
    <item>
      <title>Monday, 3 June 2024, 10:15 PM - Bertrand Coquerelle</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-83794</link>
      <pubDate>Mon, 03 Jun 2024 14:15:46 GMT</pubDate>
      <description>by Bertrand Coquerelle. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hello, &lt;br&gt;
&lt;br&gt;
- after enrolment method end date&lt;br&gt;
- after the completion of an activity&lt;br&gt;
&lt;br&gt;
I have moodle version 3.9&lt;br&gt;
&lt;br&gt;
So bad&lt;br&gt;
I can't see&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-83794</guid>
    </item>
    <item>
      <title>Wednesday, 14 June 2023, 5:57 PM - Renaat Debleu</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-80153</link>
      <pubDate>Wed, 14 Jun 2023 09:57:12 GMT</pubDate>
      <description>by Renaat Debleu. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Technically this is possible, but it would involve a lot of computing power: calculating every minute all restrictions for all users in every  course to check if the end of the relative date restriction is reached or not.&lt;br&gt;
&lt;br&gt;
How would you handle combined restrictions (group = group1 AND 3 days before end of course)?&lt;br&gt;
&lt;br&gt;
And what happens if a course/section/module is unhidden, then the availability changes, so on that moment everything has to be recalculated again.&lt;br&gt;
&lt;br&gt;
So my answer is no, your problem should be revolved for every access restriction available in Moodle,  and the huge amount of calculations and energy needed, makes it highly improbable it will ever be implemented or even work. &lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-80153</guid>
    </item>
    <item>
      <title>Wednesday, 14 June 2023, 1:10 AM - Daniel Ciccone</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-80140</link>
      <pubDate>Tue, 13 Jun 2023 17:10:00 GMT</pubDate>
      <description>by Daniel Ciccone. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Is there any way to make it send a message by moodle and by mail to the user when an activity is available at the end of the relative date restriction?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-80140</guid>
    </item>
    <item>
      <title>Wednesday, 8 March 2023, 10:50 PM - Renaat Debleu</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-79132</link>
      <pubDate>Wed, 08 Mar 2023 14:50:18 GMT</pubDate>
      <description>by Renaat Debleu. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hello Gabor,&lt;br&gt;
&lt;br&gt;
feature requests are made on GitHub (&lt;a href=&quot;https://github.com/ewallah/moodle-availability_relativedate/issues&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/ewallah/moodle-availability_relativedate/issues&lt;/a&gt;).&lt;br&gt;
&lt;br&gt;
We tried already to implement that feature. But it was not working as expected. We tried out to hide an activity 5 minutes after first login. But It is never clear when this first access is set in the database. &lt;br&gt;
&lt;br&gt;
It did work when the user logged in - logged out and logged back in, or when the user accessed an activity, then the restriction worked as expected. But when the user did nothing during the first 5 minutes, the first access field was not yet set, so the restriction did not work.&lt;br&gt;
&lt;br&gt;
When features are not working as expected in all situations, it is better to drop the idea. &lt;br&gt;
&lt;br&gt;
R&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-79132</guid>
    </item>
    <item>
      <title>Wednesday, 8 March 2023, 9:55 PM - Gábor Zahemszky</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-79131</link>
      <pubDate>Wed, 08 Mar 2023 13:55:41 GMT</pubDate>
      <description>by Gábor Zahemszky. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;(Small modification. In the user table, there is a field: timecreated - this is the information I'd like to check and called it: createDate. This name is the AD name of the same information.)&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-79131</guid>
    </item>
    <item>
      <title>Wednesday, 8 March 2023, 9:48 PM - Gábor Zahemszky</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-79130</link>
      <pubDate>Wed, 08 Mar 2023 13:48:26 GMT</pubDate>
      <description>by Gábor Zahemszky. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hello, Renaat!&lt;br&gt;
&lt;br&gt;
I have to explain it &lt;img class=&quot;icon emoticon&quot; alt=&quot;smile&quot; title=&quot;smile&quot; src=&quot;https://moodle.org/theme/image.php/moodleorg/core/1777401252/s/smiley&quot;&gt;&lt;br&gt;
&lt;br&gt;
The basics:&lt;br&gt;
&lt;br&gt;
I'd like to restrict something based on users first login into Moodle. Eg, in the first 30 days after his/her first login he/she can reach activity A, but after 30 days only activity B. Your plugin can do most of it, but we cannot check the first login date (I called it: createUser attribute), only the enrollment date.&lt;br&gt;
&lt;br&gt;
I think, the user's enrollment date of a course belongs to that user - and the first login date belongs to him/her, too. I mean, this two informations are not so different. So I think, it is possible to modify your plugin to check that information, too. And I think, it would not be so hard to do that modification.&lt;br&gt;
&lt;br&gt;
(And some words about enrollment. There is this plugin:  AutoEnrol ( &lt;a href=&quot;https://moodle.org/plugins/enrol_autoenrol&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://moodle.org/plugins/enrol_autoenrol&lt;/a&gt; ). It can automatically enroll users based on some criterias. And I can filter enrolling users using availability restrictions. So if your relative-date restriction plugin could check createUser date, I could enroll users based on their first login using these 2 plugins working together.)&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-79130</guid>
    </item>
    <item>
      <title>Wednesday, 8 March 2023, 9:47 AM - Renaat Debleu</title>
      <link>https://moodle.org/plugins/availability_relativedate#comment-79126</link>
      <pubDate>Wed, 08 Mar 2023 01:47:31 GMT</pubDate>
      <description>by Renaat Debleu. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hello Gabor,&lt;br&gt;
&lt;br&gt;
this is an availability restriction plugin and not an enrollment plugin. If the auto enroll would add the correct start date from your AD, then this plugin let you restrict activities and section based on this start date.&lt;br&gt;
&lt;br&gt;
So you have to modify your auto enrol plugin.&lt;br&gt;
&lt;br&gt;
R&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/availability_relativedate#comment-79126</guid>
    </item>
  </channel>
</rss>