Upload enrolment methods
Maintained by
Eoin Campbell
This plugin allows administrators add the "Course meta link" and "Cohort sync" enrolment methods to a range of courses from a CSV file, and specify the role for the methods participants. They can also delete, enable or disable existing enrolment methods in a course.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
Thank you so much for this plugin. It's been of great help for my team. However, while doing QA processes around the define roles functionality, the below warning came out. Another user reported this back in October 2021, and would like to add that adding the missing strings to the plugin's language file solve the warning.
Invalid get_string() identifier: 'uploadenrolmentmethods:add' or component 'tool_uploadenrolmentmethods'. Perhaps you are missing $string['uploadenrolmentmethods:add'] = ''; in C:\wamp64\www\moodle/admin/tool/uploadenrolmentmethods/lang/en/tool_uploadenrolmentmethods.php?
line 353 of \lib\classes\string_manager_standard.php: call to debugging()
line 7284 of \lib\moodlelib.php: call to core_string_manager_standard->get_string()
line 2589 of \lib\accesslib.php: call to get_string()
line 2434 of \lib\accesslib.php: call to get_capability_string()
line 118 of \admin\roles\classes\capability_table_base.php: call to get_capability_docs_link()
line 135 of \admin\roles\classes\capability_table_with_risks.php: call to core_role_capability_table_base->display()
line 708 of \admin\roles\classes\define_role_table_advanced.php: call to core_role_capability_table_with_risks->display()
line 257 of \admin\roles\define.php: call to core_role_define_role_table_advanced->display()
Solution: Add the below to the tool_uploadenrolmentmethods.php
$string['uploadenrolmentmethods:add'] = 'Add/Upload enrolment methods';
$string['uploadenrolmentmethods:delete'] = 'Delete enrolment methods';
Kind regards,
Jose
thanks for this great plugin. It saves SO MUCH time!!
Regards
Sonja
I'm using UploadEnrolmentMethods (v.1.3.4), and Moodle 3.9.10
Do you have any ideas?
Invalid get_string() identifier: 'uploadenrolmentmethods:add' or component 'tool_uploadenrolmentmethods'. Perhaps you are missing $string['uploadenrolmentmethods:add'] = ''; in C:\wamp64\www\moodle/admin/tool/uploadenrolmentmethods/lang/en/tool_uploadenrolmentmethods.php?
line 353 of \lib\classes\string_manager_standard.php: call to debugging()
line 7284 of \lib\moodlelib.php: call to core_string_manager_standard->get_string()
line 2589 of \lib\accesslib.php: call to get_string()
line 2434 of \lib\accesslib.php: call to get_capability_string()
line 118 of \admin\roles\classes\capability_table_base.php: call to get_capability_docs_link()
line 135 of \admin\roles\classes\capability_table_with_risks.php: call to core_role_capability_table_base->display()
line 708 of \admin\roles\classes\define_role_table_advanced.php: call to core_role_capability_table_with_risks->display()
line 257 of \admin\roles\define.php: call to core_role_define_role_table_advanced->display()
I'm running Moodle 3.11 with the latest version of UploadEnrolmentMethods (v 1.3.4)
Worked for a cohort method but in the metacohort column :
Fail with cohort ID
Success with cohort short name
Sorry for the delay in replying. Basically we have multiple roles in our system in which we would like to allocate by using this method.
Exam1 with student-cohort with role "RS" and "RI" these roles are different in their nature but have the required outcome.
Because you cannot specify multiple roles in the upload without a second line. It says the "enrolment method already linked to course" pops up rejecting the action.
Example 1 which works.
Operation,method,shortname,metacohort,disabled,role
add,cohort,Test1,Student-cohort,0,rs
add,cohort,Test2,Student-cohort,0,rs
Example 2 which fails
Operation,method,shortname,metacohort,disabled,role
add,cohort,Test1,Student-cohort,0,rs (Have also tried combinations of rs,ri in this line) nothing seems to work.
add,cohort,Test1,Student-cohort,0,ri
I hope this makes sense.
Kind Regards,
Dean
Just wondering whether something can be tweaked to accompany two cohort syncs adds in one go via .csv file?
Currently when doing this, it says the enrolment method already used and will not enrol the second cohort sync group.
Is there a way around this?
Thanks
I've install the plugin and it works fine.
I've a question/suggesion:
Now, use this plugin is only possible for "Site Administrator".
Is there now a solution to allow this plugin for "site manager"?
If no, my suggestion is to do that in a future version