Hi, I would like to set time limit to my self-paced lessons. For example, UserA can access to the course for 2 hours while UserB can access to the course for 3 hours. After the time limit, their access to the course will be revoked. Does anyone know whether I can configure that in Moodle 3.61? Or are there any free plugin that can do that?
You can set when an enrolment starts and ends... https://docs.moodle.org/36/en/Manual_enrolment#Editing_individual_enrolment_start_and_end_dates
I can't remember if it is as granular as down to the time. Easy enough to try.
Thanks for your reply, Howard. I have tried it, although it shows hours, minutes and seconds, for some reasons, it doesn't work. The user can still access the course after the expiration of his enrollment. I have also gone through the full list of plugins, it doesn't seem to be able to track down to hours and remove access. I found a few that can track the activities done and the hours spent though.
Hmmmm.... do you have cron running (properly)? By properly... I mean every minute as recommended.
Do I need a cron on top of it since this function is there by default?
Anyway, further testing on it, I realise it is not really what I am looking for. This enrolment function set a timeframe where the user can access to a course. However, I need something more like a clock in, clock out function. Say if UserA has 10 hours to access to a course, so whenever he logs in, his time will start ticking and stops when he logs out. So this 10 hours can mean 1 hour today, 2 hours tomorrow and 7 hours the week after. After 10 hours, he will not have access to the course anymore.
Thanks for the suggestion, Howard. Will do that.