Invitation
Maintained by
Michael Milette
The Invitation Enrolment Moodle Plugin is a powerful tool for course instructors that simplifies the enrolment process by allowing instructors to send personalized email invitations with a unique token. This plugin offers control over who can use the invitation, tracks past invitations, and allows for resending or revoking invitations. It also supports inviting users even if they are not yet registered on your Moodle LMS site and limiting the lifespan of the invitation.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
The problem is in the function leftinvitationfortoday(), the query to get the number of invitations sent does not take into account the specific course you are looking for, so if you have sent 4 invitations for the course 1, and the course 2 allows you to send only 5 invitations, the number of available invitations for the course 2 today is only one. It could be fixed adding a new clause:
//$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 ', array($onedayearlier));
$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 AND courseid = ?', array($onedayearlier,$courseid));
The problem is in the function leftinvitationfortoday(), the query to get the number of invitations sent does not take into account the specific course you are looking for, so if you have sent 4 invitations for the course 1, and the course 2 allows you to send only 5 invitations, the number of available invitations for the course 2 today is only one. It could be fixed adding a new clause:
//$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 ', array($onedayearlier));
$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 AND courseid = ?', array($onedayearlier,$courseid));
The problem is in the function leftinvitationfortoday(), the query to get the number of invitations sent does not take into account the specific course you are looking for, so if you have sent 4 invitations for the course 1, and the course 2 allows you to send only 5 invitations, the number of available invitations for the course 2 today is only one. It could be fixed adding a new clause:
//$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 ', array($onedayearlier));
$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 AND courseid = ?', array($onedayearlier,$courseid));
The problem is in the function leftinvitationfortoday(), the query to get the number of invitations sent does not take into account the specific course you are looking for, so if you have sent 4 invitations for the course 1, and the course 2 allows you to send only 5 invitations, the number of available invitations for the course 2 today is only one. It could be fixed adding a new clause:
//$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 ', array($onedayearlier));
$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 AND courseid = ?', array($onedayearlier,$courseid));
The problem is in the function leftinvitationfortoday(), the query to get the number of invitations sent does not take into account the specific course you are looking for, so if you have sent 4 invitations for the course 1, and the course 2 allows you to send only 5 invitations, the number of available invitations for the course 2 today is only one. It could be fixed adding a new clause:
//$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 ', array($onedayearlier));
$sentinvitations = $DB->get_records_select('enrol_invitation', 'timesent > ? AND tokenused = 0 AND courseid = ?', array($onedayearlier,$courseid));
-Derek
http://lang.moodle.org/local/amos/view.php?t=1381808464&v=2500&l=ru&c=enrol_invitation&s=&d=
lang/en/enrol_invitation.php
$string['invitation:config'] = 'Configure manual enrol instances';
$string['invitation:enrol'] = 'Enrol users';
$string['invitation:manage'] = 'Manage user enrolments';
$string['invitation:unenrol'] = 'Unenrol users from the course';
$string['invitation:unenrolself'] = 'Unenrol self from the course';
lang/ru/enrol_invitation.php
$string['invitation:config'] = 'Настраивать зачисление вручную';
$string['invitation:enrol'] = 'Записывать пользователей на курсы';
$string['invitation:manage'] = 'Управлять зачислением пользователей на курс';
$string['invitation:unenrol'] = 'Отчислять пользователей из курса';
$string['invitation:unenrolself'] = 'Отчислять себя из курса';
I think this plugin is wonderfull, I wonder if would be possible to import a lot of email address from a file (ex: csv) ?
thanks!
German: thank you for the report. Didier fixed it there: https://github.com/mouneyrac/enrol_invitation/commit/ac8f38bdaa6db867e1f7bf12e3d36fe69db0aa08
Brad/Peter/Junior: please write report/bug issues on Github (with step to reproduce - setup info - environment info): https://github.com/mouneyrac/enrol_invitation/issues
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.
Thank you,
Jerome
I was translating the invitation plugin and I think I saw a typo in the original English strings:
2.2 [noinvitationinstanceset,enrol_invitation] "No invitation enrolmenet instance has been found. Please add an invitation enrol instance to your course first."
"enrolmenet " should be "enrolment " (I think)
Thanks in advance for your help.