Course Members

kobi
Forums
hi guys , i need your help i create a course A with lesson and add members to it , now i create another course B and lesson ( is still not published ) and i want the same members in course A to be in course B when the course B is published ( by rule ) , i hope that you understood what i mean. Kobi
Profile picture for user James Aparicio
James Aparicio

Hi kobi,

Hi kobi,

Have you tried grouping those 2 courses in a class?

It may work out of the box, if not only very small changes should be required.

 

Best regards

kobi

hi

i try to explain what i need i have department with 12 members -( class ?) in this department i have 15 courses . i create course A and add members , now i create again the same course i call it B but is not published until the date is comming ( because i need a retraining option after six month ) so what i need to do is when the second course (B) published i need some rule to add the course A members automatic to course B. and send email to the members . I think I was able to to confuse myself :) Kobi
Profile picture for user James Aparicio
James Aparicio

Hi kobi.

Hi kobi.

If you have a class with 2 courses, there are rules that automatically add the users to all the courses in the class. So the subscription part is already implemented. 

If one of the courses is unpublished, the users will be members of it but will not be able to access it because it is unpublished. 

You could simple add a date field to the courses. And based on that date have a cron that published/unpublishes the courses based on that date.

Or could add the course to the class at that point, and the rules to add the users would be automatically triggered.

 

 

Best regards

kobi

Thanks

one more question , the rule " Class OG member subscribe (Active)" start to work when the Event "User has become a group member" so my question is can i add more Conditions like this : when a User has become a group member AND the course is published ? and only when the course is published say three months then the rule will be active
Profile picture for user James Aparicio
James Aparicio

Hi kobi, 

Hi kobi, 

Yes sure.

When creating/editing a rule, you have events (when is the rule triggered), conditions (conditions for the rule to apply) and actions (actually do something).

You can mix and match the events and conditions. 

Also if you find that there are specific triggers, conditions or action that are not exposed in the interface, you can easily add your own.

If you search for drupal rules create custom trigger||condition||action you will find a lot of simple tutorials on how to do this.

 

Best regards

 

kobi

Hi

Hi James thanks for your answer , but it is a little bit hard ... i have the send mail action after the rule "Class OG member subscribe (Active)" triggered ( it is working great ) but i just want the send mail will be triggered only after the course publishing ( it is like a reminder to the user that he need to do the course ) any idea ?
Profile picture for user James Aparicio
James Aparicio

For that you can create a new

For that you can create a new rule triggered by on node before saving. 

You can check if the node-unchanged is unpublished and the node is published. Then just look over all the active members and trigger an email action.

Best regards

kobi

Thanks

so i create a new rule triggered by on node before saving. i check if the node-unchanged is unpublished and the node is published.. so now i need to " look over all the active members " how can i do it ? I tried several things without success, where I take the list of users?