9 posts / 0 new
Last post
don
Offline
Last seen: 3 years 5 months ago
Joined: 04/08/2014
Parent Student relation

Hi,

Any idea on how can I do parent-student relationship?

What can parent role do? - Create account for hes/her children(student). - Acess his/her children's posts, grades and other details

What student role do? - Do quizzes, exam, assessment

*** Features similar to moodle

Regards, Don

axel
Offline
Last seen: 4 days 13 hours ago
Staff
Joined: 09/25/2013
Hi Don,

Hi Don,

Thanks for your feedback.

Your idea is nice. It could be probably easily implemented using this kind of module
https://drupal.org/project/subuser

Don't hesitate to post on this forum for any question regarding the implementation.

Best regards,
Axel

don
Offline
Last seen: 3 years 5 months ago
Joined: 04/08/2014
Thanks

Hi axel,

Thanks for your respond. I'll try play around with the subuser module.

msharma
Offline
Last seen: 3 years 5 months ago
Joined: 02/15/2016
Hi Don,

The drupal 7 subuser module is doing the something as required, but when we tried to add multiple members then the list show all the users from website to add or remove. I want in the add multiple member page only users added by manager as subuser will be list not from other manager sub users. How can i achieve this thing.

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 4 days ago
Staff
Joined: 10/30/2013
Hi msharma,

Hi msharma,

This really depends on what interface you are refering to and how you can hook into the possible results you are getting.

Best regards

msharma
Offline
Last seen: 3 years 5 months ago
Joined: 02/15/2016
Hi James

Hi James,

Actually i have create a class in which there are several courses. When i click on my courses i can see list of classes, on clicking particular class, a class with their courses open. Here i click on users where i have found add member and add multiple members for the class who can join. On Add multiple members there is list of available users option and selected users for the class to whom role can be define like student , coach etc. Now i want that in list of available option can contains user list from subuser drupal module for that user only.

Thanks.

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 4 days ago
Staff
Joined: 10/30/2013
Hi msharma,

Hi msharma,

You shoudl be able to do it with a form_alter

https://api.drupal.org/api/drupal/modules!system!system.api.php/function...

Changing the fucntion to get the users.

Best regards

msharma
Offline
Last seen: 3 years 5 months ago
Joined: 02/15/2016
Hi James,

Hi James,

I know i can edit the form, but the question how to list the users from user's subusers as i have vardump and there is nothing mention related to subusers. If you can elaborate or give me some code sample it will help me a lot.

Thanks

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 4 days ago
Staff
Joined: 10/30/2013
Hi msharma,

Hi msharma,

 

For the add members page, the form element should have a key called #autocomplemte_path that references a path. You can alter it to a path created by you that returns the user that you want.

Ex: https://www.drupal.org/node/854216

 

For the add multiples members, we already have some costumizations on it. You can look inside

opigno_lms/modules/opigno/opigno/modules/simple_ui/includes/opigno_simple_ui.og.inc

 

Best regards