CUL Course Visibility Update

Maintained by Amanda Doughty
Scheduled task to update course visibility based on start and/or end date.
Price option: Free

Supports Moodle 3.2-4.0 See all versions
Latest release: 4 years ago
Installations: 164
Downloads (last 90 days): 27

Frankenstyle name: local_culcourse_visibility
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Thanks for reporting this I'll check it out today
Hi Amanda. We just upgraded to the latest version of this plugin and (under Moodle 3.3.4) encountered the following error which prevented Moodle's cron from running:
Fatal error: Class 'advanced_testcase' not found in /var/www/html/moodle/local/culcourse_visibility/classes/task/update_course_visibility.php on line 37
We actually ended up having to uninstall the plugin in order to get cron running again. Please can I ask if you have any suggestions re. how to resolve this issue? Many thanks.
/admin/settings.php?section=local_culcourse_visibility
How do I access the plugin settings? Follow the image https://imgur.com/tyglRul
Hi Amanda, I would like to know if this pluign hides courses from the current date.
mdl_course.enddate can be set in the course settings in 3.1 and earlier: /course/edit.php?id=#
Hi Amanda,
This settings (mdl_course.enddate) is only available in "3.3". I'm using "3.1"
Ricardo
It is based on the end date in the course settings: mdl_course.enddate. So it will make the course hidden on that date if you select that in the plugin settings. It does not work on a per user basis using enrollments.
Hi,
How do I set up the end date?
Do I have to config the "enrol plugin" instead of the "Course settings"?
Ricardo

For the record, the said discussion is here: https://moodle.org/mod/forum/discuss.php?d=326061

Thank you very much Tomasz and David. I shared it because someone asked for the functionality in the developer forum. I've already made the three prechecker changes and uploaded to github. I'll update the zip now.

Thanks Amanda for sharing the plugin with the community, and thanks Tomek for providing the peer-review. I am happy to approve the plugin now. You are cleared to land, welcome to the Plugins directory!

It's a very simple plugin - but it does what it says. There are no problems with the code - you may just want to fix 3 minor problems with phpdoc as reported by prechecker above, to keep it quiet!
You can also bump supported version - I've tested it on Moodle 3.0 and it works OK.
I recommend to go ahead and approve this plugin as it is.
Hi Amanda,
Thank you for your contribution. I will be reviewing the plugin over the next week, stay tuned!