Moodle Blog

Bulk add parents to children in Moodle (parent role)

The Parent (or Mentor) role in Moodle is one which allows a parent (or mentor!) to see the activities of their child/mentee without being enrolled in courses or seeing other user information they are not entitled to view. Here is the Parent role documentation. However, one major drawback is that the assigning of parents to their children has to be done manually – and if you have a big school and big families, that’s very irksome.

I have had the pleasure -and challenge! -this week of testing out a new method of bulk connecting parents to children via a new contributed Moodle plugin from Maxime Pelletier. This is his first contribution and he’s keen for some feedback. While I have tested it successfully on  a Moodle 2.3 with my locally hosted celebrity parents, it really needs bigger and more thorough testing. Additionally, while it worked for me, I am not technical enough to know how well it meets all Moodle’s code-writing criteria, so Maxime would be happy to have a “proper tester” (My words not his!)  The details and download links are available from this tracker entry, and the plugin has also been added to Moodle’s plugins database in the hope of acceptance.

So… how does it work? Well, if, like me, you are not technical and you don’t know your cli from your sql then stop reading here 🙂 I would stop too except I have to write this next bit:

Normally when I test plugins it’s quite straightforward as you just download them, upload them to the relevant folder in your Moodle and you are ready to go. This one however, requires a bit more work. It’s an update of a plugin by Penny Leach and as well as downloading the plugin and adding it into your Moodle you have to go into your database and run cron via the Command line. Wow! This week Maxime has been hand-holding me remotely and Frenchly from Canada while I ventured into unchartered territories to give this a go. And now, not only do my  parents and children connect but I’ve enjoyed a major learning curve!

Here are the steps:

  1. You need to have made the parent role already in Moodle
  2. Your parents and children need to exist in Moodle, as authenticated users.
  3. You need a table with the parent, child and parent role name in your database. Maxime has a plugin for LDAP enrolment; for my testing purpose I just used  my localhost PHPMyadmin and made the table
  4. You need a new entry for each parental connection. So David Beckham for instance would have four entries – David and Brooklyn, David and Romeo, David and Cruz and David and Harper7. I did mine manually as I only did two but  I would like to think that with external database enrolment/LDAP you can set this up very quickly.

5. Now add the module to the “enrol” directory of your Moodle  and go to Settings>Site administration>Notifications

6. You’ll be prompted to fill in the fields to match your database info with Moodle’s info:

7. Finally you run the synchronisation cron – like so…

8. Then you go back to Moodle and -voilà! Your parents and children are connected 🙂

Dieser Beitrag wurde am Monday, 05. November 2012 um 22:08 Uhr veröffentlicht und wurde unter der Kategorie Moodle abgelegt. Du kannst die Kommentare zu diesen Eintrag durch den RSS-Feed verfolgen. Du hast die Möglichkeit einen Kommentar zu hinterlassen, oder einen Trackback von deinem Weblog zu senden.

«  –  »

3 Comments »

  1. Nice post! I hope my plugin will help Moodle admins as much as it help me 🙂

    And thanks for promoting it!

    Regards

    Comment: Maxime Pelletier – 06. November 2012 @ 2:08 pm

  2. I am curious if you are still using this method, and if it is working in Moodle version 3.0+.
    Thanks!
    M. Walker

    Comment: Michael Walker – 18. March 2016 @ 4:49 pm

  3. I’m afraid I’m not – so I am not sure if it does or not.

    Comment: admin – 18. March 2016 @ 9:23 pm

Leave a comment

Pages

The Blog Posts

Search the blog

Meta

 

WP-Design: Vlad -- Powered by WordPress -- XHTML 1.0