My Courses shows courses the user is not enrolled in

My Courses shows courses the user is not enrolled in

Jim King發表於
Number of replies: 10

I have a new installation of Moodle 2.3.1 and the "My Courses" shows all courses, even those a user is not enrolled in.  How do I get My Courses to show only enrolled courses. 

The site is set for no guest access and front page settings are set so that no courses are shown to non-logged in users.  Also, from the front page settings,  the setting to show a list of courses is set.

Jim King

www.SavannahCBLV.org

 

評比平均分數:Useful (1)
In reply to Jim King

Re: My Courses shows courses the user is not enrolled in

Mark Hardwick發表於

Jim,

I have a similar if not the same problem; As long as a student is enrolled in a course everything is fine and they see only their course(s).  However, when a student is not enrolled they see nothing under "my home" but they can see every course in "site home" and "courses" tab.  I've been through the front page settings and got it to that point but cannot get rid of the course list.

I think I'm going to enroll past students in a course named "Sorry but you are not currently enrolled in a course" so that's all they see anywhere. 

I had this problem on 2.0+ and now also on 2.2.4   I've ask a similar question on the quiz site a week or so back you can look at and see the responses but at this point I'm not sure there is a fix for it.

Mark     

評比平均分數:Useful (1)
In reply to Jim King

Re: My Courses shows courses the user is not enrolled in

Thelma Polanco-Perez發表於

Hi Jim and Mark,

I have the same problem in 2.3.1. Hope to hear a fix from the HQ soon.

Thelma

In reply to Thelma Polanco-Perez

Re: My Courses shows courses the user is not enrolled in

Shawn Drake發表於
Has anyone heard anything about this yet? We are having the same issue and I don't see any fix for it in the settings.
In reply to Shawn Drake

Re: My Courses shows courses the user is not enrolled in

Erin Bard發表於

Long time lurker, first time poster; found this thread via a Google search and as I think I just figured out a possible solution, thought I'd share.

I was seeing the same thing on our Moodle install, version 2.4 (with some local customizations): the "My courses" showed all our categories ("Fall", "Spring", etc.) and then showed all courses within each category (rather than just the courses the teacher or student are enrolled in), and the "Courses" subtree showed all categories with all courses (as expected).

I believe the following solved it:

Under "Site Administration" --> "Appearance" --> "Navigation", I enabled the settings for "Show all courses" and "Show course categories" and then disabled "Show my course categories".

My thinking is that maybe having two copies of each course category on the page is the source of the problem; maybe they both have the same underlying ID on the navigation tree, and so when the second copy of a given course category (under the "Courses" subtree) comes along, it would be overriding the first copy of the course category (the one under the "My courses" subtree) - if so, it would make sense that disabling the "Show my course categories" would solve the problem since you'd then only have one instance of each course category on the page and there wouldn't be anything overwriting. (Hopefully that made sense!)

I've looked at the PHP code for the navigation section (/lib/navigationlib.php), but was unable to find a way to fix this via code so that it would do what I expect it is meant to and allow course categories to show up both "My Courses" and "Courses"... but the work-around is good enough for me for now. Maybe someone more familar with the Navigation library can figure it out.

Erin

In reply to Erin Bard

Re: My Courses shows courses the user is not enrolled in

Carol Howells發表於

Hi I am using Moodle 2.2.1 and I have the same problem. I have spent hours looking for a fix and changing the settings as described above. I've been using moodle since 2005 as well.....any help most appreciated

In reply to Erin Bard

Re: My Courses shows courses the user is not enrolled in

jennifer southcombe發表於

Unfortunately this didn't work for me.  For some reason - a handful of students and teachers have blank "My Courses" or "My Home" pages while others list their courses.  We just updated to 2.4.  Anyone out there have any idea why this would affect some and not others?

In reply to jennifer southcombe

Re: My Courses shows courses the user is not enrolled in

Kevin Dempsey發表於

I'm having the same problem, where the My Courses section shows all the available courses in any category, so long as a student is enrolled in one course in that category. For example, our categories are Grade 9, Grade 10, Grade 11, Grade 12. If a student is enrolled in one of the courses in Grade 9 and one in Grade 10, she can see ALL courses in Grade 9 and Grade 10 (but not Grade 11 or 12).

The only way around this is if we disable Show My Course Categories, but then for teachers who have lengthy lists of courses, their list becomes unmanageable.

In reply to Kevin Dempsey

Re: My Courses shows courses the user is not enrolled in

Anton Coltham發表於

Has anyone found a solution to this? We are still getting all subcategories and courses showing under the My Courses dropdown menu in the Navigation block if a student is enrolled in one of the courses of the category.

We are using Moodle 2.4.3+

In reply to Anton Coltham

Re: My Courses shows courses the user is not enrolled in

Anton Coltham發表於

Being sorted in MDL-39014

In reply to Anton Coltham

Re: My Courses shows courses the user is not enrolled in

Anton Coltham發表於

The more votes this gets the more chance of getting it sorted sooner. It is becoming a major pain for larger sites. Please go to this link, login and vote for  MDL-39014.