Child / Student Registration through JomSocial / JSPT

  • Ron Wells
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
15 years 2 months ago - 15 years 2 months ago #1 by Ron Wells
Antonio / Chris - great job once again. I now have R0.5 in production. Working great.

Request for Joomdle -> "Register" - Menu item used to register children via parent account.

Right now I believe the system points to the basic Joomla registration. How difficult would it be to point to the JomSocial / JSPT student profile for registration instead? For students, we also need to capture first name, surname, and date of birth - per the "Student" profile type we have defined in JSPT. Current Joomla registration does not ask for this information.

Would be happy to "sponsor" this fix - especially if it could be completed soon. Our registration starts in a few weeks. This would be a great help. B)

One other comment for this registration tool - should think about renaming "Children" to "Student" - that way system could work in business environment with group admins registering students, etc.

Thanks,
Ron
Last edit: 15 years 2 months ago by Ron Wells.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago - 15 years 2 months ago #2 by Chris
I'll leave Antonio to comment on the Jomsocial registration module.

As for renaming "children" to "student" have you tried changing the fields in the language file? I have changed "Children" to "Student" successfully. Perhaps there are places we have missed out - if so, can you specify where so it can be resolved.
Last edit: 15 years 2 months ago by Chris.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #3 by Antonio Durán
Hi.

Great to hear you want to sponsor this feature.

I am not sure how hard it would be, as now it is really a copy of the joomla register view. I don't think it is a good idea to copy every component registratin process.

But, thinking more about it I have another solution in mind, which could apply to Jomsocial.....will take a look at it as soon as I can and let you know.

Please Log in or Create an account to join the conversation.

  • Ron Wells
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
15 years 2 months ago #4 by Ron Wells

chris wrote: I'll leave Antonio to comment on the Jomsocial registration module.

As for renaming "children" to "student" have you tried changing the fields in the language file? I have changed "Children" to "Student" successfully. Perhaps there are places we have missed out - if so, can you specify where so it can be resolved.


Only area that matters is the title above the registration form. Right now it says "Children Registration'. I will look at the language file. Thanks!

Please Log in or Create an account to join the conversation.

  • Ron Wells
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
15 years 2 months ago #5 by Ron Wells

antonio wrote: Hi.

Great to hear you want to sponsor this feature.

I am not sure how hard it would be, as now it is really a copy of the joomla register view. I don't think it is a good idea to copy every component registratin process.

But, thinking more about it I have another solution in mind, which could apply to Jomsocial.....will take a look at it as soon as I can and let you know.


This would really help us out. Thanks!

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #6 by Antonio Durán
Hi again.

What I did for the Register Children feature was to copy and modify Joomla registration process, and include it into Joomdle. I modded it so that you can register while being logged, and added the needed params.

For people using Jomsocial, I think it would be better to have another approach, that does not involve recreating all jomsocial registration process.

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

Option 2:
Extend functionality in Joomdle register view to include Jomsocial fields. So, all fields would be entered, but not using Jomsocial pages.
I am not sure how hard this would be (I have concerns about fields like country)

Antonio

Please Log in or Create an account to join the conversation.

  • Ron Wells
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
15 years 2 months ago #7 by Ron Wells
Would it be possible to set parent info and then redirect as part of the registration process - similar to this:?

www.joomlaxi.com/downloads/free-products...redirector-2017.html

Just wondering...

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #8 by Antonio Durán
Unfortunately, that is not possible, as it just redirects to normal Jomsocial registration process.

As you are logged as parent, you won't reach the register page (Jomsocial checks will redirect you to your profile).

Please Log in or Create an account to join the conversation.

  • Ron Wells
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
15 years 2 months ago #9 by Ron Wells

antonio wrote: Hi again.

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

Option 2:
Extend functionality in Joomdle register view to include Jomsocial fields. So, all fields would be entered, but not using Jomsocial pages.
I am not sure how hard this would be (I have concerns about fields like country)

Antonio


Option 2 would be best as it does not need actual student involvement. Main fields we need for students is only First Name, Surname, and if possible - date of birth.

If you register a student with this system as is, their first name and surname are blank in Moodle. Since the first and surname are blank, the "mod_joomdle_mentees" module does not show them as a student of the parent and therefore can not assign courses, etc.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago - 15 years 2 months ago #10 by Antonio Durán
I think there is a simple solution to your problem, if you only need the fields (first and lastname) to be filled in Moodle.

If you want to try, just comment this line in "administrator/components/com_joomdle/helpers/mappings.php", function get_user_info_jomsocial:
$user_info[$mapping->moodle_field] = JoomdleHelperMappings::get_field_value_jomsocial ($mapping->joomla_field, $user->id);

And add in its place:
$value = JoomdleHelperMappings::get_field_value_jomsocial ($mapping->joomla_field, $user->id);
if ((!$value) && ($user_info[$mapping->moodle_field]))
; //do nothing, keep value if set before, and we dont have a new one
else $user_info[$mapping->moodle_field] = $value;


This will make Joomdle use Joomla first and lastname when Jomsocial fields are blank.
Last edit: 15 years 2 months ago by Antonio Durán.

Please Log in or Create an account to join the conversation.