How to activate course memberships

mwaindegwa
Hi guys, I have two courses in one class. I want course 101 to activate course 102 once its completed successfully. How do I do this? Thanks.
Profile picture for user James Aparicio
James Aparicio

Hi mwaindegwa

Hi mwaindegwa

On course 2 you set course 1 as required course.

On course 1 you set a lesson as required lesson.

Once you do this, when you add a user to class 1 he will be blocked in course 2 until he finishes course 1.

Best regards

mwaindegwa

Hi James,

Hi James, I have done that but its still not working. I have even put the rules log so that I see what happens but its not working yet. I have a few questions. 1. Should I put my courses as private of public? 2. The rules as firing as they should except that the membership is not being activated? Should i subscribe the users and append their status as blocked or should i let them subscribe for themselves from the training catalogue? 3. Is there something else that I might have overlooked? Thanks.
Profile picture for user James Aparicio
James Aparicio

Hi mwaindegwa,

Hi mwaindegwa,

Depends on what you want to do. If you want for the users to register to the class and not courses individually you should set the class as semi-private, the first course as semi-private but disabling the possibility for users to subscribe and the second course as private.

When you add a user to the class. What happens? they are active on both courses?

 

Best regards 

mwaindegwa

Hi James,

Hi James, Yes If I add the user to the class s/he can see all courses and that's not what I want. I would prefer using courses where course 101 makes course 102 available only when course 101 is successfully completed. I want a scenario where the user can not take course 102 until course 101 is completed. Either it (course 102) should not be available or a user can not access it until the required course is done. Thanks.
Profile picture for user James Aparicio
James Aparicio

Hi mwaindegwa

Hi mwaindegwa

But did you add a new user and you went inside the courses and checked their status?

Or did you check for users that were there already before doing the required stuff in the courses? If you add a new user to the class, when you go to the course 2 and list the users there, if that user set as active?

Best regards

mwaindegwa

Hi James,

Hi James, This is what I have: Course 101 which is public and where the user (mwaindegwa) has be registered as a student for this course and he is status is active.The lesson which is required is lesson 101 for this course. Course 102 which is private. Now here is where my questions start. 1. Do I make this course public? 2. Is a user supposed to be subscribed in this course 102 and has a status pending or blocked so that rules fire up in course 101 when its completed successfully and subscribe him as active in course 102 or what? That's where I am getting mixed up. Thanks.
Profile picture for user James Aparicio
James Aparicio

Hi mwaindegwa

Hi mwaindegwa

When a course is public users can see the course and the course content. If 102 is public the required course, it does not make sense that course 101 is required. If anyone, even those who are not registered can see the course and all its content, it rly does not matter if the user is part of the course or not (they just cant be scored, otherwise they can access everything).

Both semi-public and public courses show up on the course catalogue. The differrence is that semi-public you can only access the course and with public you can access the course and all the course content.

 

You want to make users have to do course 1 to access course 2 correct? You should leave both courses as semi-public. 

1-If you do not have a class, it means that users can register on course 1. They can also register for course 2 but as soon as they register they are set as pending, meaning they cannot access its content.

 

2- If you have a class containg these 2 courses, you can set them all to semi-public and disable users from registering to the courses. This way they can only register to the class (This way they will be automatically registered to both courses (as active on course 1 and pending on course2). Once the user finishes course 1 he will automatically be set as active on course 2.

mwaindegwa

Thanks its finally worked :-)

Thanks its finally worked :-)
Christinelle

Activating membership according to required course

Hi James, I have read this forum subject and I think there is an issue with the required course and membership activation in my opigno. I have tried several settings but can't find the solution... Here is the configuration : A private class with 2 private courses in. The first course has required lessons. The second course has the first course as required course, and it has required lesson too. When I subscribe a student to the class, he is active on the first course, and pending to the second course, so everything is OK. But when the student finish the first course, nothing happens, the membership to the second course is not activated. In the log report there is an alert for the rule "Activate membership when required course is passed " : "Unable to evaluate condition og_user_in_group." Do you think there is something wrong with the rule ? Since I did not make any changes on the rule, I find it quite mysterious... Or maybe it is about the OG permissions on class and courses... In the end, I do not know whether to allow or not the subscription or adhesion of non-members... What is the default configuration ? Hope you could help me. Many thanks Christinelle
Profile picture for user James Aparicio
James Aparicio

Hi Christinelle,

Hi Christinelle,

Just tested this to confirm and it is working correctly.

Tested exactly with the same conditions as you stated:

 

Class 1 -> Private

-> Course 1 -> Private -> Lesson 1 required for course validation

->-> Lesson 1

-> Course 2 -> Private -> Lesson 2 required for course validation and course number 1 as required course

->-> Lesson 2

Created a new user. Added the user to the class. He was added to the class as active, active in course 1,  pending on course 2.

Passed the lesson 1 with the user created. User was correctly set as active in course 2.

 

There is probably something incorretly configured in your instance.

Best regards

Christinelle

Hi James,

Hi James, Many thanks for taking some time to test. I've tried on another opigno and I agree with you, it works ! I have compared class and course settings between the two platforms and they are identical, og permissions are identical two... Unfortunately on my opigno there is still a problem. I think it's about rules because I have errors in the journal. Here are the rules errors encountered : When a student finish a quizz : "Unable to evaluate condition og_user_in_group." "Unable to get the data value for the variable or parameter group. Error: Missing data values." When I delete membership from a class, the student is not took of the courses and his pending status for a course is turn "active". The errors are : "Unable to modify data "user-memberships:state": Entity property og_membership doesn't support writing. " "Unable to evaluate action data_set." I recently update my opigno and activate multilingual support... can it be related ? Thank you in advance for the advice you can give me. Regards
IngridGB

Set lesson to passed

sorry - wrong place