Giter Site home page Giter Site logo

moodle-an-hochschulen / moodle-block_course_overview_campus Goto Github PK

View Code? Open in Web Editor NEW
8.0 13.0 13.0 416 KB

Moodle block which provides all functionality of block_course_overview, provides additional filters to be used on university campuses as well as the possibility to hide courses from the course list

License: GNU General Public License v3.0

PHP 90.92% CSS 1.53% JavaScript 7.55%
moodle moodle-plugin moodle-block

moodle-block_course_overview_campus's Introduction

moodle-block_course_overview_campus

Build Status

Moodle block which provides all functionality of block_course_overview, provides additional filters to be used on university campuses as well as the possibility to hide courses from the course list

โš ๏ธ End of life

This plugin has reached end of life.

This plugin is not actively maintained anymore for Moodle versions beyond 3.7. Please consider to replace it with block_myoverview in Moodle core.

Requirements

This plugin requires Moodle 3.7+

Motivation for this plugin

Moodle installations on university campuses have certain constraints which are not completely supported by Moodle core and the course overview block in Moodle core. We implemented this course overview block to accommodate these needs as much as possible while keeping the features from the original course overview block from Moodle core as much as possible as well.

Installation

Install the plugin like any other plugin to folder /blocks/course_overview_campus

See http://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins

Usage & Settings

After installing the plugin, it can be directly used by users and can be added to the Moodle dashboard and to the Moodle frontpage.

Initially, it behaves like block_course_overview from moodle core. Additionally, courses can be hidden from the course list.

To make use of the advanced features of the block, please visit: Site administration -> Plugins -> Blocks -> Course overview on campus

There, you find multiple settings pages:

1. General

On this settings page, you can change the block's title which is shown in the block view (multilang strings are supported, see http://docs.moodle.org/en/Multi-language_content_filter for details).

2. Course overview list

On this settings page, you can change the appearance of the course overview list, especially if the course's full name or short name should be displayed in the course overview list entries. Additionally, you can enable and style the displaying of some meta data in a second row of the course overview list entry and you can define if courses in which the user has a teacher role are listed first in the course overview list.

3. Hide courses

On this settings page, you can enable (default) or disable the system for hiding courses from the course overview list.

4. Teacher roles

On this settings page, you can define which roles in a course will be displayed besides the course's name as teacher and get listed in the teacher filter.

5. Parent category filter

On this settings page, you can activate and configure a filter which enables your users to filter their courses by parent category. As soon as the filter is activated and the setting is saved, the filter appears in the block view.

6. Top level category filter

On this settings page, you can activate and configure a filter which enables your users to filter their courses by top level category. As soon as the filter is activated and the setting is saved, the filter appears in the block view.

7. Teacher filter

On this settings page, you can activate and configure a filter which enables your users to filter their courses by teacher. As soon as the filter is activated and the setting is saved, the filter appears in the block view.

8. Term filter

On this settings page, you can activate and configure a filter which enables your users to filter their courses by term. As soon as the filter is activated and the setting is saved, the filter appears in the block view.

Data sources

1. Parent category filter

The parent category filter is filled with the main category of each of the user's courses.

Example: If the course's category path is Category A -> Category B -> Category C -> Course, the filter will contain an entry with Category C.

2. Top level category filter

The top level filter is filled with the top level category of each of the user's courses.

Example: If the course's category path is Category A -> Category B -> Category C -> Course, the filter will contain an entry with Category A.

3. Teacher filter

As described in the "Usage & Settings" section of this file, you should configure the teacher roles for block_course_overview_campus according to your campus needs. After that, block_course_overview_campus takes each course member with one of the configured roles. These teachers are filled into the teacher filter.

4. Term filter

As described in the "Usage & Settings" section of this file, you should configure block_course_overview_campus according to your campus course of the year. After that, block_course_overview_campus maps each course to a term by looking at the course's start date. This term is filled into the term filter.

Block placement

block_course_overview_campus is used ideally as sticky block and placed on your frontpage (and / or Dashboard page).

See http://docs.moodle.org/en/Block_settings#Making_a_block_sticky_throughout_the_whole_site for details about sticky blocks

Disregarded Moodle Features

During the development of Moodle, there have been added several features added to the moodle core block_course_overview and moodle core which would conflict with block_course_overview_campus functionality. It has been decided to disregard the following Moodle features for this block:

  • In block_course_overview in Moodle 2.4+, a user is able to sort his course list by drag and drop. We decided to not adopt this feature for block_course_overview_campus because we think this would conflict with the filtering / hiding feature and confuse users. In block_course_overview_campus, the course list remains sorted by full course name.
  • In block_course_overview in Moodle 2.4+, a user is able to limit the length of his course list with a block setting. We decided to not adopt this feature for block_course_overview_campus because we think this would conflict with the filtering / hiding feature and confuse users. In block_course_overview_campus, the course list always shows all courses which have passed the selected course filters.
  • In block_course_overview in Moodle 2.4+, the administrator can configure the block to show Metacourse children. We decided to not adopt this feature for block_course_overview_campus because we have no need for this. If you need this feature, please let us know on https://github.com/moodleuulm/moodle-block_course_overview_campus/issues
  • In block_course_overview in Moodle 2.4+, the administrator can configure the block to show a welcome message. We decided to not adopt this feature for block_course_overview_campus because we have no need for this. If you need this feature, please let us know on https://github.com/moodleuulm/moodle-block_course_overview_campus/issues
  • In Moodle core since Moodle 2.2+, there is a setting "courselistshortnames" which controls the displaying of course names. This setting is also processed in block_course_overview. We decided to ignore this core setting and to stick to block_course_overview_campus's internal course display control settings.
  • In contrast to the Moodle core block_course_overview, this block doesn't support MNet courses and wasn't tested with MNet Moodle installations.

Companion plugin local_boostcoc

Since the release of Moodle 3.2, Moodle core ships with a shiny new theme called "Boost". While Boost does many things right and better than the legacy theme Clean, it also has some fixed behaviours which don't make sense for all Moodle installations. One of these behaviours is the fact that the mycourses list in the nav drawer (the menu which appears when you click on the hamburger menu button) is non-collapsible, always contains all of my courses and can hardly be configured by administrators.

We have created local_boostcoc as a companion plugin to block_course_overview_campus which does its best to add support for filtering and hiding courses to the mycourses list in the nav drawer. local_boostcoc is published on http://moodle.org/plugins/view/local_boostcoc and on https://github.com/moodleuulm/moodle-local_boostcoc.

Theme support

This plugin is developed and tested on Moodle Core's Boost theme. It should also work with Boost child themes, including Moodle Core's Classic theme. However, we can't support any other theme than Boost.

This plugin also provides a fallback for browsers with JavaScript disabled.

Plugin repositories

This plugin is published and regularly updated in the Moodle plugins repository: http://moodle.org/plugins/view/block_course_overview_campus

The latest development version can be found on Github: https://github.com/moodleuulm/moodle-block_course_overview_campus

Bug and problem reports / Support requests

This plugin is carefully developed and thoroughly tested, but bugs and problems can always appear.

Please report bugs and problems on Github: https://github.com/moodleuulm/moodle-block_course_overview_campus/issues

We will do our best to solve your problems, but please note that due to limited resources we can't always provide per-case support.

Feature proposals

Due to limited resources, the functionality of this plugin is primarily implemented for our own local needs and published as-is to the community. We are aware that members of the community will have other needs and would love to see them solved by this plugin.

Please issue feature proposals on Github: https://github.com/moodleuulm/moodle-block_course_overview_campus/issues

Please create pull requests on Github: https://github.com/moodleuulm/moodle-block_course_overview_campus/pulls

We are always interested to read about your feature proposals or even get a pull request from you, but please accept that we can handle your issues only as feature proposals and not as feature requests.

Moodle release support

Due to limited resources, this plugin is only maintained for the most recent major release of Moodle. However, previous versions of this plugin which work in legacy major releases of Moodle are still available as-is without any further updates in the Moodle Plugins repository.

There may be several weeks after a new major release of Moodle has been published until we can do a compatibility check and fix problems if necessary. If you encounter problems with a new major release of Moodle - or can confirm that this plugin still works with a new major relase - please let us know on Github.

If you are running a legacy version of Moodle, but want or need to run the latest version of this plugin, you can get the latest version of the plugin, remove the line starting with $plugin->requires from version.php and use this latest plugin version then on your legacy Moodle. However, please note that you will run this setup completely at your own risk. We can't support this approach in any way and there is a undeniable risk for erratic behavior.

Translating this plugin

This Moodle plugin is shipped with an english language pack only. All translations into other languages must be managed through AMOS (https://lang.moodle.org) by what they will become part of Moodle's official language pack.

As the plugin creator, we manage the translation into german for our own local needs on AMOS. Please contribute your translation into all other languages in AMOS where they will be reviewed by the official language pack maintainers for Moodle.

Right-to-left support

This plugin has not been tested with Moodle's support for right-to-left (RTL) languages. If you want to use this plugin with a RTL language and it doesn't work as-is, you are free to send us a pull request on Github with modifications.

PHP7 Support

Since Moodle 3.4 core, PHP7 is mandatory. We are developing and testing this plugin for PHP7 only.

Copyright

Ulm University Communication and Information Centre (kiz) Alexander Bias

Credits

This plugin is an enhanced version of Andrew James' block_course_overview_plus (https://moodle.org/plugins/view.php?plugin=block_course_overview_plus) which was enhanced to fit the needs of university campuses.

moodle-block_course_overview_campus's People

Contributors

abias avatar davosmith avatar kathrin84 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moodle-block_course_overview_campus's Issues

Notification : duplicate value - Debug Mode

Hello,

I'm using a Moodle 2.9 site with the last version of your awesome block (Release 2.9 (Build: 2015092900)). I've noticed on particular user, i got an error when i turn on debug messages. Here is one example :

debug-cooc

And this is our configuration's block :

conf-cooc

I've applied a var_dump function on the $courseteachers var and this is the output of the interesting line :

[847]=> object(stdClass)#2171 (5) { ["id"]=> string(3) "847" ["lastname"]=> string(7) "Doe" ["firstname"]=> string(8) "Jane" ["sortorder"]=> string(1) "3" ["roleid"]=> string(1) "3" }

Do you have any idea to fix the problem ?

Thanks in advance for your help !

Seb

"Undefined variable: modchoices" error whenever I perform an upgrade

I'm running Moodle 3.3+ with PHP 7.0 and the latest version of the block code (master branch). Every time I perform a command-line upgrade, I receive the following error:

PHP Notice: Undefined variable: modchoices in [MOODLEROOT]/blocks/course_overview_campus/settings.php on line 95

This happens for every upgrade, even if it doesn't involve this plugin directly. Any thoughts on what I might do to fix it?

Suggestions

Hi,

Please note that for academic year 2016/17 we have started making use of the 'Course Overview on Campus' block due to some changes in the infrastructure of the VLE. In previous years we have always used the 'Course Overview' block.

Since we launched this year's VLE, we have been receiving emails, mostly from tutors, with suggestions for the 'Course Overview on Campus' block. Below we identify the three most common suggestions we've been getting:

  1. Courses should be displayed in chronological order, rather than in alphabetical order.
    For instance, we organise courses in Categories, namely, 'Academic Year 2016/17', 'Academic Year 2015/16', etc, and we have organised the categories so that 'Academic Year 2016/17' is displayed as the first option from the 'Category' filter menu in the 'Course Overview on Campus' block. When users use the 'All' option they prefer to see all courses for the current academic year listed first, followed by last year's courses, etc. At the moment, the courses are being displayed in alphabetical order.
    We are aware of the 'Filter by Term' option, however, in our case this is not a feasible option.
  2. Choose a particular category to set default.
    By default, the 'Course Overview on Campus' block displays 'All' courses which the user is registered for. Is it possible to have a setting for the block where admin personnel can choose to set a particular category as default, please?
  3. Allow users to rearrange the sequence in which the various courses for a particular category are displayed.
    This feature is available in the 'Course Overview' block, and therefore some of our users have been used to this feature in previous years.

Much thanks in advance.

Best Regards,
Naomi

Performance

Hey,

we are dealing with great performance problems. Users with more then 20 courses have to wait sometimes over 30 secounds until the site with the block attached to it gets loaded. Please take a look at the existing moodle issue for the course overview block: https://tracker.moodle.org/browse/MDL-34785

Thx Alex

Suggestions

Hi guys, love the block.

Was wondering if you had considered two features:

1: Show courses by subcategories in the course filter menu. I.e. If a course is in a subcategory, display its parent category in the filter dropdown as well. Maybe a greyed-out option.

2: Choose to have course descriptions/details collapsed by default (e.g. SCORM attempt info).

Cheers
Phil

"No courses" text

Hi. This plugin would benefit with some "No courses to display" text, if there werent any. Maybe toggleable in the settings.

Show teacher name only show surname

I checked the following setting:
Second row: Show teacher name
block_course_overview_campus | secondrowshowteachername

I expect to show teacher full name (surname + lastname)

But the actual result is only to show surname.

Is it a bug?

Plugin breaks behat tests

When running behat tests with this plugin installed and set as a default block on the user's dashboard we get various debug notices which make the tests fail.

These include:

Exception - Notice: Undefined property: stdClass::$termmode in [dirroot]/blocks/course_overview_campus/locallib.php on line 222
...

and

The function assign_print_overview() is now deprecated.
line 576 of /mod/assign/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to assign_print_overview()
...
The function chat_print_overview() is now deprecated.
line 1184 of /mod/chat/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to chat_print_overview()
...
The function choice_print_overview() is now deprecated.
line 949 of /mod/choice/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to choice_print_overview()
...
The function forum_print_overview() is now deprecated.
line 1411 of /mod/forum/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to forum_print_overview()
...
The function grouptool_print_overview() is now deprecated.
line 622 of /mod/grouptool/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to grouptool_print_overview()
...
The function lesson_print_overview() is now deprecated.
line 566 of /mod/lesson/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to lesson_print_overview()
...
The function quiz_print_overview() is now deprecated.
line 1615 of /mod/quiz/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to quiz_print_overview()
...
The function scorm_print_overview() is now deprecated.
line 1114 of /mod/scorm/lib.php: call to debugging()
line 206 of /blocks/course_overview_campus/locallib.php: call to scorm_print_overview()
...
Exception - Notice: Undefined property: stdClass::$firstrowcoursename in [dirroot]/blocks/course_overview_campus/block_course_overview_campus.php on line 1297

You already explain the print_overview calls in your README. But the other two notices look like they can be prevented.

Plugin Name in language file

For the version - 2017063000, running on a linux box, the pluginname on the block title is not translating properly.

Can you let us know if there is any updates available?

Thanks

suggestion: filter by asignment state

Hello Alexander,

Thank you for this wonderful plugin. Our students are really fond of your plugin. In the meanwhile the students have given me a lot of feedback about this plugin. Some of the students have some good ideas, maybe you are interested in their ideas.

1: The students use your plugin to discover unsubmitted asignments. but to search a very long list of assignments and courses they have a hard time. the students have in mind to solve this problem. these are their suggestions:

a: is it possible to give the different states a predefined color: like 'submitted for grading' (green orange) 'graded' (green) 'not submitted' (red). then you have some division in the states.

b. is it possible to filter for example with a dropdown menu the different states.for example: the dropdown menu consists of: 'not submitted' 'submitted for grading' , and so on. when they pick a state, they see only the the states chosen in the menu. they can see for example only assignments they did not submit for. and see only teh assignments which have been graded.

c: both the upper proposals.

Do you understand what I mean? is it possible to do that in course overview on campus. can you expand your plugin with such feature? :)

I hope to hear from you soon. Thanks in advance,

Mitchell

Wrong id used for teacher filter

Hi,

I think there is a small issue in the teacher filter part.
On line 439 the only id field which is requested is ra.id which is the roleid.
The correct id I think should be the user id which would be:
$courseteachers = get_role_users($teacherroles, $context, true, 'ra.id, u.id, u.lastname, u.firstname, r.sortorder', 'u.lastname, u.firstname');

can you confirm that?

regards,

Mario

PHP Notice: Undefined variable / PHP Warning: array_key_exists() expects parameter

A lot of entries in my php error log

[25-Sep-2018 05:07:28 Europe/Berlin] PHP Notice: Undefined variable: courseteachers in /var/www/moodle/blocks/course_overview_campus/block_course_overview_campus.php on line 644
[25-Sep-2018 05:07:28 Europe/Berlin] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/moodle/blocks/course_overview_campus/block_course_overview_campus.php on line 644

Moodle 3.5.2 (Build: 20180910)
PHP Version 7.0.30-0+deb9u1
Course overview on campus block_course_overview_campus v3.5-r1 2018070200

Great plugin by the way!

Bug: Refreshing VLE page shows category as empty

Hi,

Thanks for this block. We are currently testing the latest version of the Course Overview on Campus block on Moodle 3.1.

We have noticed that if a user chooses a specific category and accesses a course within the category, then clicks the 'Back' button, the category is displayed as empty. This also happens if the user clicks the 'Refresh' button.

Moreover, we've noticed that if a user chooses a top-category with several parent categories, and accesses a course within the category, upon clicking the 'Back' button, only those courses which fall directly within the top-category are displayed. To resolve this, the user has to choose another category, and then go back to the required category to display all necessary courses.

We've also tested this with debug mode on, and the following was displayed:
Notice: Undefined variable: hidemanagebox in /var/www/html/vle/blocks/course_overview_campus/block_course_overview_campus.php on line 1293

While this is not a major issue, and we can work around it, we appreciate if there's a fix for this in the future.

Much thanks in advance,
Naomi

Error when users are enrolled in too many courses (or long course names)

Some users who are enrolled in many courses (~100) get the following error when logging in or opening their dashboard in Moodle 3.3.2 with Boost theme: "Coding error detected, it must be fixed by a programmer: Invalid value in set_user_preference() call, value is is too long for the value column".
In the debug mode we find that this error may be related to the plugin moodle-block_course_overview_campus. The version of our plugin according to our moodle-plugin overview is 2017063000.
Is there any way you or we can fix that easily?
The plugin works fine for users being enrolled in fewer courses, only teachers who are in charge of a large number of courses get this error message.

We would be very happy if you could help us,
best wishes from Vienna,
Klaus

This is what we get from the debug-mode:

line 1022 of /lib/outputrequirementslib.php: call to debugging()
line 1465 of /blocks/course_overview_campus/block_course_overview_campus.php: call to page_requirements_manager->js_call_amd()
line 288 of /blocks/moodleblock.class.php: call to block_course_overview_campus->get_content()
line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1197 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1249 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 3839 of /lib/outputrenderers.php: call to block_manager->region_has_content()
line 42 of /theme/university_boost/layout/columns2.php: call to core_renderer->blocks()
line 1162 of /lib/outputrenderers.php: call to include()
line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 164 of /my/index.php: call to core_renderer->header()

Coding error detected, it must be fixed by a programmer: Invalid value in set_user_preference() call, value is is too long for the value column
Debug info:
Error code: codingerror
Stack trace:

line 1897 of /lib/moodlelib.php: coding_exception thrown
line 436 of /blocks/course_overview_campus/locallib.php: call to set_user_preference()
line 1500 of /blocks/course_overview_campus/block_course_overview_campus.php: call to block_course_overview_campus_remember_notshowncourses_for_local_boostcoc()
line 288 of /blocks/moodleblock.class.php: call to block_course_overview_campus->get_content()
line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1197 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1249 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 3839 of /lib/outputrenderers.php: call to block_manager->region_has_content()
line 42 of /theme/university_boost/layout/columns2.php: call to core_renderer->blocks()
line 1162 of /lib/outputrenderers.php: call to include()
line 1092 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 164 of /my/index.php: call to core_renderer->header()

User can see hidden categories

When a category is hidden non-admin users cannot see it or the sub-categories and courses within it. However in our dashboard which uses this block they are still visible.
We are using Moodle 3.3.5+ and course_overview_campus v3.3-r1.

Yours Denis Featherstone
Hertford Regional College

Moodle 2.6 error(s)

Hello Alexander,

I am not sure if you are interested in it. But I am testing course overview on campus on Moodle 2.6. You probably encounter this issue fast enough ;)

when adding the block on my hom page the following error appears:

Debug info: Unknown column 'c.modinfo' in 'field list'
SELECT c.id,c.category,c.sortorder,c.shortname,c.fullname,c.idnumber,c.startdate,c.visible,c.groupmode,c.groupmodeforce,c.cacherev,c.modinfo,c.sectioncache , ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth AS ctxdepth, ctx.contextlevel AS ctxlevel, ctx.instanceid AS ctxinstance
FROM mdl_course c
JOIN (SELECT DISTINCT e.courseid
FROM mdl_enrol e
JOIN mdl_user_enrolments ue ON (ue.enrolid = e.id AND ue.userid = ?)
WHERE ue.status = ? AND e.status = ? AND ue.timestart < ? AND (ue.timeend = 0 OR ue.timeend > ?)
) en ON (en.courseid = c.id)
LEFT JOIN mdl_context ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = ?)
WHERE c.id <> ?
ORDER BY c.fullname ASC
[array (
0 => '2',
1 => 0,
2 => 0,
3 => 1386153500,
4 => 1386153500,
5 => 50,
6 => '1',
)]
Error code: dmlreadexception
Stack trace:

line 441 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 996 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 599 of /lib/enrollib.php: call to mysqli_native_moodle_database->get_records_sql()
line 147 of /blocks/course_overview_campus/block_course_overview_campus.php: call to enrol_get_my_courses()
line 296 of /blocks/moodleblock.class.php: call to block_course_overview_campus->get_content()
line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 956 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1008 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 37 of /theme/formal_white/layout/general.php: call to block_manager->region_has_content()
line 866 of /lib/outputrenderers.php: call to include()
line 796 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 153 of /my/index.php: call to core_renderer->header()

Courses missing since update

Since updating to the latest version (2.5, Build: 2013090301), most of my courses have gone missing, for no clear reason I can see so far.
For example, the display list now ends with the winter term 2012/2013, although there were many courses in summer 2013 that I took part in...?

Please add a "Reset filters" button

Hi,
Your plugin is great and we still use it in Moodle 3.7 :-)

One of the few issues we encounter with the plugin is that users (students and teachers) set the UI filters of the plugin to their needs, forget about it, and then contact our support team and claim that they don't see a course that they are enrolled to.

Is it possible to add a noticeable "Reset filters" button that would give a visual clue to the users that maybe there is a need to change the filters? Of course it's also a functionality improvement, because the in some cases the user wouldn't have to change each of the filters in order to see the full list of courses.

If the button addition is problematic, it would be great if at least the color of the filters (font and/or background) could be changed via the UI. It's already something that can be done using CSS modification, but it is a little bit cumbersome, cause it involves editing files on the server.

Thanks in advance, even if just for taking the time to read this :-)

Problem with dropdown after logging back in

I added this block to my dashboard with only the top-level category filter enabled. I logged into Moodle and chose a category and the courses I'm enrolled in dropped down as they should. But when I log out and then back in or visit a course and then return to the dashboard, the previously chosen category still shows, but the courses don't drop down. Even when I click the desired category again in the dropdown list, the courses don't drop down. Only when I choose a different category and then choose the previous one that I wanted in the first place does it work. Students will see this and think they've been dropped from their courses. Tried it with Firefox and Chrome with the same issue.

Missing course category attribute

Hi,

we've noticed, that if you set the setting categorycoursefilter to false, but secondrowshowcategoryname to true you get an error Notice: Undefined property: stdClass::$categoryname in ....

The reason is that the categoryname property is set, only if the option categorycoursefilter is enabled.

As far as I can tell, it's enough to change the line 412 to

if ($coc_config->categorycoursefilter === true || $coc_config->secondrowshowcategoryname === true) {

but you may consider a more general solution.

I can submit a pull request, of course ;)

Eye icon not work

Hi everyone!

I have the following problem in my moodles. (2.5.9 with Clean theme, 2.8.5+ with Decaf theme)

When i try to use the "eye" icon the courses doesn't get hidden. The icon changes, but the course still remain visible(in couse settings too).

So:
1

Now i click on the eye icon:

2

Click on the "Managing hidden courses".

3

Click on the eye icons:

4

As you can see, no effect on the course's setting.

Suggestion: Separate link for category/top category at course list output

Hi, I support a Moodle setup that is being used in sort of multisite setup by using top categories as "site" per organization. Unfortunately Moodle itself doesn't have a really useful way of filtering the categories by "site".

Your plugin is almost there for out needs, but currently the course link covers both course and category name.

Having a separate link for category at course list would help the users very much at browsing their all available courses and organization's categories. Would it be possible for you to make such a change? Or would you rather have a pull request?

Suggestion: Students see list of all courses they are enrolled to, but can only access those available.

Hi, I had raised this suggestion in moodle.org wrt the default Course Overview block, but we are now immersed in using Course Overview on Campus. Well done for developing such an amazing block.

Situation
At the start of every academic year, we receive a number of queries from students who claim that cannot see some of their courses listed in the block, the likelihood being that the teacher had not yet made the course visible to students (rather than the students were not enrolled to their course).

Suggestion
We feel that it would be beneficial for all parties if the course overview block could also show all courses which a student is enrolled to, in spite of whether the course is set as visible or not. Obviously, courses not set as visible would remain inaccessible. Such feature would make the system more 'transparent', in the sense that students would know which courses they are enrolled to, and that its simply the teacher who has not yet made a course accessible to them.

Any chance of including this feature or some guidance to tweak the current block?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.