I had a quick look at the code for this. 'timestart' and 'timeend' are optional paramaters for the web service call. If you don't set them, they are simply set to 0 (i.e. off). There doesn't seem to be any attempt to pick up the default settings.
Howard Miller
Опубликовано Howard Miller
Tim - yeh, good point. I think I was spectacularly overthinking it 
You gave me more than enough of a clue... I just set_config('docroot', 'my url') at the start of the index page and then put it back to what it was before right at the end. That works... it now links to my preferred help page for that particular plugin page 
PHP 8.1 has been unsupported for nearly 2 years. That's not a great situation.
Even PHP 8.2 has been unsupported for several months. Time to find a new host?
Even PHP 8.2 has been unsupported for several months. Time to find a new host?
Are you sure you read it fully? Especially... "Note: the selected role must also have the moodle/role:switchroles capability to be able to switch".
If you give students that capability then, yes they can.
I have to warn you that you are getting into the "Wild West" in role terms. You are generating scenarious that have, almost certainly, never been tested before. It's very much up to you to make sure it works and is free of problems. Are you *sure* it needs to be this complicated?
If you give students that capability then, yes they can.
I have to warn you that you are getting into the "Wild West" in role terms. You are generating scenarious that have, almost certainly, never been tested before. It's very much up to you to make sure it works and is free of problems. Are you *sure* it needs to be this complicated?