- Posts: 128
Child / Student Registration through JomSocial / JSPT
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
1. When a new student user is registered - they do not show up in Moodle until they are assigned a class. Expected.
2. Once they are assigned a class - they show up in Moodle. That said, their parent role is empty - but they are mapped to the parent somehow within the class assignment side.
3. They do not show up as a mentee in - mod_joomdle_mentees. How does the parent / mentee role get set?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
2 & 3: children-parent link is donde at registration, that is why you need to do it through Joomdle registration process.
I am just testing locally and it works for me: when I create a new user with Joomlde "Register children" he automatically shows up in the list of mentees.
Did you set the parent role id in joomdle config in moodle?
I seem to have found a problem, though, as the parent-child link is not being written in Joomla user parameters, and so the child does not appear in the "assign courses" page. Is this working for you?
Please Log in or Create an account to join the conversation.
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
- Posts: 128
Please Log in or Create an account to join the conversation.
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
- Posts: 128
antonio wrote:
I seem to have found a problem, though, as the parent-child link is not being written in Joomla user parameters, and so the child does not appear in the "assign courses" page. Is this working for you?
No - I have tried many ways and can not get the child to appear in the assign courses page either. How are the parents linked to the child - is there something saved in the Joomla or Moodle database?
Please Log in or Create an account to join the conversation.
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
- Posts: 128
antonio wrote: Option 1:
- Let the students register by themselves, thus children accounts would not be created by parents (or at least, not by logged in parents)
- In student registration, add field "parent email", so that accounts can be linked
- If parent approval for student creation is needed, jomsocial 2.0 profile types features could be leveraged to create a plugin to send activation email to parent
How difficult would it be to pursue Option 1 above? I know we are short on time. Is this a difficult plugin to build?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
It took me a while to find out that children registration was not working fine for me because of another conflicting plugin I had been developing in the past. Disabling it makes everything work fine.
So, first thing would be to know why your children are not being listed in assign courses page.
How it works, so you can take a look at your database:
- When you register a new children, a new user param is set for him, containing the parent user id
- Assign courses view shows all users who has this param set
So, you should look into your DB, the row for a user created through Joomdle's Register chidlren, and check what he has in the params field.
Then we can follow debug.
As for Op 1: I think it would not be hard, as most of the logic is already there. It would be just a matter of adding another way of doing things.
If you need the parent approval feature, that would take some more time.
Please understand that first, normal children registration must work for Op 1 to be implemented, so maybe you don't need it when we get normal process to work for you?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
- will aways parents register prior to children?
- should it check if entered parent email exists in DB?
Please Log in or Create an account to join the conversation.
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
- Posts: 128
antonio wrote: Some things that needs to be considered if going for 1) :
- will aways parents register prior to children?
- should it check if entered parent email exists in DB?
Yes - we would want to block students registering without parents. Parents must first accept terms before we would allow students on the site.
Yes - if they enter an email that is not associated with a parent, it should not let them register as a student.
Thanks
Please Log in or Create an account to join the conversation.
- Ron Wells
- Topic Author
- Offline
- Premium Member
-
- Posts: 128
antonio wrote:
So, you should look into your DB, the row for a user created through Joomdle's Register chidlren, and check what he has in the params field.
Then we can follow debug.
Please understand that first, normal children registration must work for Op 1 to be implemented, so maybe you don't need it when we get normal process to work for you?
Checked out Joomla user database - I am seeing "u62_parent_id=62" as example. Issue is that the student does not show up in mod_joomdle_mentee module. Only way to get the students to show up there is to set the parent role in the moodle database - correct? Is it possible to have the role updated in the moodle database after the registration occurs?
During the registration process - we are having the parents look first to see if their student is already associated with their account. Only new students need to be registered. If they do not see their student in the mod_joomdle_mentees module, then we are asking them to register them.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7909
There are 2 places where parent-child relation is stored, for convenienve:
- joomla, in the user params, used by assign courses view
- moodle, using moodle roles, used by mentees module
For me the two are working fine, ie: when I create a new user through children registration, he then shows up in both assing courses view and mentees module.
Did you set up parent role ID in Joomdle config in moodle?
Please Log in or Create an account to join the conversation.