Your Moodle version

Enrolment: Invitation

enrol_invitation
Maintained by Picture of Jérôme Mouneyrac Jérôme Mouneyrac
Send personal course invitation to some users by email.
40
119
10

Invitation Enrolment Moodle Plugin

Download the last version

Maintenance

This is a none-core contributed plugin. You are welcome to do Pull Request on Github, to report issues, however no support is guaranteed.

Features

With this enrolment plugin, teacher will be able to send personal invitation to some users by email. Each email contains a link with an invitation token with unique usage. When the user clicks on the link, (s)he needs to login/create an account, then (s)he is automatically enrolled into the course. (S)he is assigned a default role. The default role can be changed in the enrolment instance config page.

Only a limited number of invitations can be sent per course/day. However you can change the limitation. Moreover used invitations are not count.

Installation

  1. Add the plugin into /enrol folder.
  2. Enable the enrolment plugin and set it up. It is quite similar to other enrolment plugins.

Alternatives

UCLA has released their own version of this plugin: https://github.com/ucla/moodle-enrol_invitation

If you have any problem, check this version. It is more recent and it has more features. Note that I am looking for someone taking over the maintenance of this plugin (i.e. becoming the new lead maintainer) . You could start by merging UCLA changes into it and check it works on all Moodle branches smile

Sets

This plugin is part of set Seeking new maintainer.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Picture of Jérôme Mouneyrac
Jérôme Mouneyrac (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Just wondering . . .
    Wed, Apr 23, 2014, 11:11 AM
    @Chris, I've just read the comment from Jerome, and he says, 5 March 2013: "Try to not comment too much here about bugs, it's not that it's not good but I'm going everyday on Github, there is more chance that I'll see an issue report on github than a comment here"

    He is probably not watching the notifications from here. Maybe a PM will work, or a message on GITHUB with a bug report . . .

    -Derek
  • Picture of Japheth Leung
    Thu, Jun 19, 2014, 3:23 PM
    Is there any plan to release on Moodle 2.7+ (Build: 20140522) ... Also can be use CSV to import emails
  • Picture of Eugene Matusov
    Sun, Aug 10, 2014, 5:52 AM
    First of all, BIG THANKS to Jérôme Mouneyrac for a wonderful plugin that saves my time!!! I'm enrolling my students via email invitations.

    Second, to Carina Martinez. I developed a small script, so a teacher can copy and paste the entire list of the students' emails to a specially designed window. Then you click on a button under this text window and the script populates all emails in the separate text strings designed by Jérôme Mouneyrac. Here is the script that you need to insert into invitation.php file (before "echo html_writer::tag('div', get_string('invitationpagehelp', 'enrol_invitation', $invitationleft), array('class' => 'invitationpagehelp'));" and after the line "if ($invitationleft > 0) {")

    //Eugene edit: add
    echo '

    Paste a column of the class participants\' emails from Excel here:

    /enter one email address (and nothing else!) per line always followed by Enter/


    onclick="if(document.getElementById(\'emailist\').value.split(\'\n\').length-1>',$invitationleft,')
    {alert(\'Too many emails! Reduce please to ',$invitationleft,'.\');} else {';
    for ($i = 1; $i <= $invitationleft; $i += 1) {
    echo 'if (document.getElementById(\'emailist\').value.split(\'\n\').length>',$i-1,')
    {document.getElementById(\'id_email',$i,'\').value=document.getElementById(\'emailist\').value.split(\'\n\')[',$i-1,'];}';
    }

    echo '}
    "
    >


    ';//Eugene edit: add
    ////Eugene edit: end

    Third, to Japheth Leung. My investigation shows that the reason of why the plugin stopped working after Moodle2.5.1 is because they change the function "email_to_user()". My successful way around of this problem is to replace the new script in Moodle2.7.1 of the mail_to_user() function with the old email_to_user() function that I took from Moodle2.5.1. The script defining the email_to_user() function is listed in the moodle/lib/moodlelib.php file -- just search for the text "function email_to_user". The plugin works fine with this roundabout and so far I don't see negative consequences of my change.
  • Picture of Eugene Matusov
    Mon, Aug 11, 2014, 3:48 AM
    I took liberty and compiled an edited version of the Invitation Enrollment plugin that runs on Moodle2.6, Moodle2.7, and Moodle2.7.1. I also added a multiple email window. You can download the edited plugin from here: http://ematusov.soe.udel.edu/enrol_invitation_moodle22_2011100303_edited_by_Eugene_20140810.zip Enjoy, Eugene
  • Picture of Panos Agathokleous
    Thu, Nov 6, 2014, 1:40 AM
    Dear Eugene Matusov,

    Your contribution is much appreciated.
    Working just fine on: Moodle 2.6.5 (Build: 20140908)

  • Picture of Jérôme Mouneyrac
    Fri, Nov 7, 2014, 7:17 PM
    Hi Eugene, thanks for your contributions. Maybe would you like to become the lead maintainer of this plugin? I am looking for a new maintainer for this plugin.
  • Picture of Yuriy Petrovskiy
    Sun, Sep 20, 2015, 4:42 AM
    I had forked repository and updated plugin to be compatible with Moodle 2.9 (https://github.com/PetrovskYYY/moodle-enrol_invitation). Pull request for join with main brunch was made a month ago, but no reply received yet.
  • Picture of Eugene Matusov
    Sun, Feb 14, 2016, 6:27 AM
    Dear Yurij, I love your plugin. I tried it on Moodle 3.0.2 and it does not seem to work. Can you check if it and if needed, fix it, please? Thanks, Eugene
  • Picture of Eugene Matusov
    Thu, Feb 18, 2016, 3:52 AM
    I fixed the invitation plugin updated by Yurij, so it starts working for me (Moodle 3.0.2, PhP 7.0.3 64-bit, MySQL 5.7 64-bit, Windows 2012R IIS8.5 64-bit, 16GB RAM) -- I can send invitation emails through it now:

    I edited:
    1) enrol\invitation\locallib.php on line 155: $invitation->subject = $data->subject;//cut the period before =
    2) enrol\invitation\locallib.php after line 200, I added: $contactuser->id=-99;
  • Picture of Brigitte Sturl
    Fri, Apr 15, 2016, 4:39 PM
    Great plugin.
    But I somehow assumed, that the expiration time starts when the user accepts the invitation, not when the invitation is sent. Would this be possible with this plugin? ( I am using the modified version from Yuriy for Moodle 2.7)
    Thanks to anyone who can help me, Brigitte
  • Picture of Yuriy Petrovskiy
    Sat, Apr 16, 2016, 5:22 AM
    I do not think it is possible, because plugin send emails immediately after submitting list of emails, but you can not know when addressee will read it (unless you will request reading confirmation which is not used widely). So I think it will be very hard to implement this for this plugin.
  • Picture of Glenn Pillsbury
    Sat, May 21, 2016, 4:39 AM
    Many thanks, Yuriy and Eugene, for your work on this plugin! I was happy to get it working in 2.9, especially the ability to paste multiple addresses from Excel.
  • Picture of Nadine Eicher
    Wed, May 25, 2016, 2:38 PM
    Dear Yuriy!
    We are using your Plugin (https://github.com/PetrovskYYY/moodle-enrol_invitation) for Moodle 2.7.2
    But the automatically expiration date doesn't start automatically. It works that the user receives the note of the expiration date in the mail after sending Invitation, but after signing into the course, the course is non stop available for this user. And I have no clue why it doesn't work.

    Is there anything we missed to install? Thanks to anyone who can help me out!!

  • Picture of Chintan Zaveri
    Mon, May 30, 2016, 1:40 AM
    I am interested in contributing towards this plugin.
  • Picture of Yuriy Petrovskiy
    Wed, Jun 1, 2016, 1:58 PM
    Chintan Zaveri, welcome! Use github, make your fork or join and make a brunch - then ready - we will do merge.
1 2 3
Please login to post comments