Moodle

Create an enrollment plug-in to create a group for each new user

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.2
  • Fix Version/s: 1.8.5, 1.9.1
  • Component/s: Enrolments
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

This enhancement has been requested through Moodle HQ.

User would like and enrolment plug-in that creates a group for each new user.

scenario:
Administrator activates the new enrolment plugin at course settings.

New user finds a course that they want to enrol in. User creates user account. At that point the plugin automatically creates a group (groupname=username) and places that user into the group.

[the need for this functionality is so users can manually grade their own quizzes (and not see others)]

Activity

Hide
Dongsheng Cai added a comment -

I added this plugin to Moodle contrib. To find it, use this cvs command:

cvs -z3 co contrib/plugins/enrol/manualgroup/

Show
Dongsheng Cai added a comment - I added this plugin to Moodle contrib. To find it, use this cvs command: cvs -z3 co contrib/plugins/enrol/manualgroup/
Hide
Dongsheng Cai added a comment -

This plugin on CVS doesn't work in MOODLE_18_STABLE. (because the groups_create_group is different between 1.9 and 1.8)

Show
Dongsheng Cai added a comment - This plugin on CVS doesn't work in MOODLE_18_STABLE. (because the groups_create_group is different between 1.9 and 1.8)
Hide
Dongsheng Cai added a comment -

Feel free to reopen.

Show
Dongsheng Cai added a comment - Feel free to reopen.
Hide
Dongsheng Cai added a comment -

I updated my code, the plugin works under both 1.9 and 1.8 now.

Show
Dongsheng Cai added a comment - I updated my code, the plugin works under both 1.9 and 1.8 now.
Hide
Dongsheng Cai added a comment -

moodle 1.8 only

Show
Dongsheng Cai added a comment - moodle 1.8 only
Hide
Dongsheng Cai added a comment -

I found more differences between 1.8 and 1.9, that's why my last attchement doesn't work on your server. This attachement should be no problems now (1.8).

Show
Dongsheng Cai added a comment - I found more differences between 1.8 and 1.9, that's why my last attchement doesn't work on your server. This attachement should be no problems now (1.8).
Hide
Dongsheng Cai added a comment -

How to use it?

1. Unzip this file, you should get folder named "manualgroup", there are several files in this folder: enrol.php, config.html, etc
2. Copy "manualgroup" folder to moode/enrol/
3. enable this plugin "Site Administration">courses>Enrolments->Manual Grouping.
4. If you want use this enrol plug-in throughout the whole site, you should click "Default", otherwise, go to the course setting, change your enrollment setting.

Show
Dongsheng Cai added a comment - How to use it? 1. Unzip this file, you should get folder named "manualgroup", there are several files in this folder: enrol.php, config.html, etc 2. Copy "manualgroup" folder to moode/enrol/ 3. enable this plugin "Site Administration">courses>Enrolments->Manual Grouping. 4. If you want use this enrol plug-in throughout the whole site, you should click "Default", otherwise, go to the course setting, change your enrollment setting.
Hide
Dongsheng Cai added a comment -

Michael, did this plug-in work for you?

Show
Dongsheng Cai added a comment - Michael, did this plug-in work for you?
Hide
Michael Blake added a comment -

No. The plugin is available in the drop down list of enrolment plugins, but when I enrol a new user in the course a group is not created. Was hoping to talk to you in the office today but understand you have exams and won't be in until Thur. I'll do some more testing and talk to you then.

Show
Michael Blake added a comment - No. The plugin is available in the drop down list of enrolment plugins, but when I enrol a new user in the course a group is not created. Was hoping to talk to you in the office today but understand you have exams and won't be in until Thur. I'll do some more testing and talk to you then.
Hide
Dongsheng Cai added a comment -

Worked on 1.8 and 1.9 both.

Show
Dongsheng Cai added a comment - Worked on 1.8 and 1.9 both.
Hide
Dongsheng Cai added a comment -

Feel free to reopen

Show
Dongsheng Cai added a comment - Feel free to reopen
Hide
Michael Blake added a comment -

Please change the name of this plug-in to "Automatic Grouping" - it better describes what the plug-in does.

Show
Michael Blake added a comment - Please change the name of this plug-in to "Automatic Grouping" - it better describes what the plug-in does.
Hide
Helen Foster added a comment -

Reopening, as this needs a modules and plugins database entry and some documentation. Please let me know if I can help with either of these things.

Show
Helen Foster added a comment - Reopening, as this needs a modules and plugins database entry and some documentation. Please let me know if I can help with either of these things.
Hide
Dongsheng Cai added a comment -

Hi, Helen, this enrollment plug-in is developed for a moodle client, it is not necessary to release

Show
Dongsheng Cai added a comment - Hi, Helen, this enrollment plug-in is developed for a moodle client, it is not necessary to release
Hide
Helen Foster added a comment -

Apologies for reopening. Reclosing now...

Show
Helen Foster added a comment - Apologies for reopening. Reclosing now...
Hide
Mathieu Petit-Clair added a comment -

Closing ... it was tested quite a lot before.

Show
Mathieu Petit-Clair added a comment - Closing ... it was tested quite a lot before.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: