General plugins (Local): CUL Course Visibility Update

local_culcourse_visibility
Maintained by Picture of Amanda DoughtyAmanda Doughty
Scheduled task to update course visibility based on start and/or end date.
28 sites
36 downloads
14 fans
Current versions available: 3

CUL Course Visibility local plugin

This plugin makes hidden courses visible when the course start date it reached. It also makes visible courses hidden when the course end date is reached. Both options can be enabled/disabled in theplugin settings. It runs daily as a scheduled task.

It will only make visible courses with a start date matching the current day.

Courses which have start dates older than the current date will not be updated.

It will only hide courses with a end date matching the current day.

Courses which have end dates older than the current date will not be updated.


Screenshots

Screenshot #0

Contributors

Picture of Amanda Doughty
Amanda Doughty (Lead maintainer)
Tim Gagen
Tim Gagen: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Ricardo Caiado
    Fri, Aug 4, 2017, 1:32 AM
    Hi,

    How do I set up the end date?

    Do I have to config the "enrol plugin" instead of the "Course settings"?

    Ricardo
  • Picture of Amanda Doughty
    Fri, Aug 4, 2017, 4:23 PM
    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.
  • Ricardo Caiado
    Fri, Aug 4, 2017, 8:16 PM
    Hi Amanda,

    This settings (mdl_course.enddate) is only available in "3.3". I'm using "3.1"

    Ricardo
  • Picture of Amanda Doughty
    Fri, Aug 4, 2017, 10:12 PM
    mdl_course.enddate can be set in the course settings in 3.1 and earlier: /course/edit.php?id=#
  • Picture of Márcio Lopes
    Mon, Oct 16, 2017, 9:51 PM
    Hi Amanda, I would like to know if this pluign hides courses from the current date.
  • Picture of Márcio Lopes
    Mon, Oct 16, 2017, 10:31 PM
    How do I access the plugin settings? Follow the image https://imgur.com/tyglRul
  • Picture of Amanda Doughty
    Wed, Oct 18, 2017, 8:43 PM
    /admin/settings.php?section=local_culcourse_visibility
  • Picture of Roland Sherwood
    Tue, Apr 17, 2018, 10:50 AM
    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.
  • Picture of Amanda Doughty
    Wed, Apr 18, 2018, 2:57 PM
    Thanks for reporting this I'll check it out today
  • Picture of Amanda Doughty
    Wed, Apr 18, 2018, 6:52 PM
    I had overwritten the wrong file. Now fixed and new version uploaded.
  • Picture of Roland Sherwood
    Thu, Apr 19, 2018, 10:48 AM
    Many thanks Amanda.
  • Picture of Marlon Gaitan
    Thu, Nov 29, 2018, 2:43 AM
    Hello Amanda, notice that we have moodle 2.8 installed the plugin but do not know where to set the end date for this version of moodle.

    Thanks for your help
  • Picture of Luiggi Sansonetti
    Tue, Nov 26, 2019, 5:51 PM
    Hi Amanda

    Just for information, I've tested this plugin with the latest verison, and it works perfectly on a 3.8 verison.

    If you could check this and udpate you plugin, it'll be a good news for all users wink

    Cheers.
  • Picture of Amanda Doughty
    Wed, Nov 27, 2019, 6:48 PM
    Thanks for the nudge Luiggi
  • Picture of Luiggi Sansonetti
    Wed, Nov 27, 2019, 10:19 PM
    Perfect !
    thanks
1 2
Please login to post comments