To align Moodle with our MIS database we require a unique Moodle course for each unique course ID in MIS to draw the students into Moodle from the database. In some cases however tutors use one Moodle course to cover a number of uniquely coded MIS courses. Our solution was meta courses where, for example, four uniquely coded courses are all enrolled on a meta course. We would then like the four enrolling courses to be hidden so that the student sees only the meta course. We have turned availability off but when a student logs in they see the course greyed out and if they access they receive a message saying course is unavailable to students. Is it possible to keep the enrolling courses entirely hidden from the students' course categories so that they see only the available meta courses?
Students still see hidden courses
Number of replies: 6Re: Students still see hidden courses
I ran into the same problem.........
Is there any HELP out there to fix that?
Re: Students still see hidden courses
I really need the invisible courses to be NOT visible for Students (means not light grey but not to see at all!).
Who can help out here?
Thanks, Katja
Re: Students still see hidden courses
Not sure what you are seeing -
On my installations,
if you are logged in as administrator, you see the "hidden" courses in light grey -
but logged in as a student, they are not visible at all.
- will
On my installations,
if you are logged in as administrator, you see the "hidden" courses in light grey -
but logged in as a student, they are not visible at all.
- will
Re: Students still see hidden courses
well, even students can see the light grey courses.
katja
Re: Students still see hidden courses
Re: Students still see hidden courses
This will take a bit of custom php programming as this runs counter to how moodle is structured. Here's how things work currently.
/index.php calls print_my_moodle()
print_my_moodle() is found in /course/lib.php
print_my_moodle() calls print_course() also found in /course/lib.php
print_my_moodle() uses get_my_courses() from /lib/datalib.php
print_my_moodle() calls print_course() also found in /course/lib.php
print_course() displays the course and decides if it should be grey
You could write your own print_my_moodle() so that it calls print_course() only if the person is the instructor/admin (don't lock them out!) or if the person is a student and the course is available. Since the list of courses for the person is generated by get_my_courses() and it doesn't care if a course available or not, you'll have to add that check in print_my_moodle() to see if each course is available. This is doable but will require a little programming.
--Scott
/index.php calls print_my_moodle()
print_my_moodle() is found in /course/lib.php
print_my_moodle() calls print_course() also found in /course/lib.php
print_my_moodle() uses get_my_courses() from /lib/datalib.php
print_my_moodle() calls print_course() also found in /course/lib.php
print_course() displays the course and decides if it should be grey
You could write your own print_my_moodle() so that it calls print_course() only if the person is the instructor/admin (don't lock them out!) or if the person is a student and the course is available. Since the list of courses for the person is generated by get_my_courses() and it doesn't care if a course available or not, you'll have to add that check in print_my_moodle() to see if each course is available. This is doable but will require a little programming.
--Scott