## Enrolment: Bulk meta course link

enrol_metabulk
Maintained by Mihir Thakkar, Marina Glancy
An improved version of enrol_meta plugin which allows you to add multiple courses in a single enrol instance.
79 sites
12 fans
Current versions available: 1

Current enrol_meta plugin provides functionality to automatically synchronize enrolments between two courses. However, the user interface is inconvenient due to problems which include inability to bulk select and/or search courses, lacking functionality to synchronize suspended/expired enrolments. The plugin is an improved version of the enrol_meta plugin such that one instance of the plugin allows linking multiple courses with convenient interface and improved synchronization.

Installation guidelines:

• Place these files in a new folder in your Moodle install under /enrol/metabulk.
• Run the upgrade either via CLI or by logging in as admin and visiting homepage
• Go to any course and its Enrolment methods page. Add an enrol instance for the course, you'll be able to link multiple courses.

### Awards

• Wed, Aug 26, 2015, 1:40 AM

9Thanks Mihir for sharing the code with the Moodle community. I was able to successfully test the basic functionality. From the code review, it is obvious that significant parts of the code come from the original enrol_meta plugin. That is indeed perfectly valid, expected and stated clearly in the README file. The only thing that would be nice to have in cases like this is to have it clearly stated in the file copyright inline tags. Moodle plugin developers usually deal with this via something like

@copyright 2015 Mihir Thakkar, based on original work by Petr Skoda


or simply

@copyright 2015 Mihir Thakkar, 2013 Rajesh Taneja


The section https://docs.moodle.org/dev/Plugin_contribution_checklist#Copyrights provides more details.

Otherwise things look sane and good enough to be published in the Moodle Plugins directory. You are cleared to land now, welcome to the plugins directory!

• Wed, Aug 26, 2015, 3:55 AM
Thank you David for reviewing!
I have updated the plugin with necessary changes. Glad to see this in the Moodle plugins directory.
• Tue, Sep 1, 2015, 9:17 PM
Love this! But... could we please get something like this for cohorts as well? Bulk adding cohorts to a course is impossible work right now!!
• Tue, Sep 1, 2015, 9:39 PM
• Thu, Jan 5, 2017, 8:19 PM
Hi, Just testing this plugin and it really suits our needs. What I can't figure out is if it can un-enrol users yet? " functionality to synchronize suspended/expired enrolments." I read somewhere about a cron job but after leaving the setup for 24 hours the users that should have been removed were still active.

Its a real shame to get this far but not be able to use it because of not handling suspended accounts.

Happy New Year, I look forward to hearing your thoughts.

Thanks, Simon
• Fri, Jan 13, 2017, 5:11 PM
Hi Simon,

Just want to check couple of things:
1. This plugin was developed for version 2.9. Could you tell me which version are you using?
2. Do you have a dev version of Moodle? There are Behat tests for testing synchronization of suspended enrolments, all of which passes.

Sorry for the inconvenience!

Thanks,
Mihir
• Fri, Jan 13, 2017, 7:19 PM
Hi Mihir, Thanks very much for getting back to me, whilst working out the version of our moodle, which is Moodle 3.1.3+ (Build: 20161202) I found the problem/field configuration. As I was checking the plugin details as well I found the setting about unenroling options(External Unenrol Action).

I originally set this to Disable course enrollment and then it appears I completely forgot that I did not set it to unenrol users. Sorry for the trouble, I am all set.

Thanks for responding.

Simon
• Fri, Jan 13, 2017, 7:27 PM
Just one further follow-up, I used the term suspended accounts incorrectly. We have paid for content subscriptions giving access to certain Moodle courses, it is these expired subscriptions/suspended accounts I was referring to before. I now realise that moodle has the option to suspend accounts which is not what I meant as users can and should still get access to free content. Apologies for the confusion there too.

Thanks

Simon
• Sat, Jan 14, 2017, 3:16 AM
Hi Simon,

Thanks for the follow up. Glad to know that you are all set now. Hope this plugin helps you.

Cheers!
• Mon, Jan 16, 2017, 6:07 PM
Hi Mihir,

Apologies to come back to you but I need more help please.

I have a hidden course A with all my enrollments. I then have a visible course B with content which I want to grant access via the bulk meta course link.

- If I select Course B, then original enrollment method Meta course from Course B to Course A then the 41 enrolled users from Course A correctly get access to Course B.

- If I select Course A, then enrollment method Bulk Meta course link and add Course B then the Users total = 0;
...so I created hidden Course C for the Bulk meta course link enrollment.

- If I select Course C and add Bulk meta link for courses A & B then my User total is 41 but they still don't have access to the content of Course B.

We have a dev/QA environment which we are testing on so able to troubleshoot.

Simon

• Mon, Jan 23, 2017, 6:16 AM
Hi Simon,

This plugin is developed and tested on Moodle 2.9 and you are using 3.1.3+. It may be possible that it is because of unsupported version.

I think you are adding B as a child course instead of meta course. Try doing the exact same thing as you did with original meta plugin. Also note that this plugin uses the same code as original meta plugin for fetching enrolments from child course to meta course so I am not sure why you are unable to use the functionality.

Thanks
• Fri, Jan 27, 2017, 7:44 PM
Hi Mihir,

We 've been using this plugin in Moodle 3.1 without any issue, but we're concerned about this plugin been unsupported.

Is there any plan to support currently supported Moodle versions (3.1 and 3.2) or future releases?

TIA.
• Fri, Jul 7, 2017, 9:02 PM
Bulk meta course link working with payu money ?
• Sat, Jul 8, 2017, 4:10 AM
Payu money is not tested with this plugin. I am not sure it works.
• Thu, Mar 8, 2018, 6:45 AM
Hi, we are using this plugin with version 3.2. Does anyone know if it works with 3.3? Are there plans to continue support for this plug-in? Without it we lose all enrolments to courses using this method. Yes.. I know this is a risk when using 3rd party plug-ins so I am just wondering if there are plans for continued support. Thanks!