Try AutoEnrol 1.2 today!

AutoEnrol 1.2 Logo

 I’ve had some tremendous support and positive comments from the Moodle community since releasing AutoEnrol over a year ago. It’s clear that people are stretching the plugin and finding some pretty awesome uses for it and as such there have been a few features which seemed to be sorely missing from the plugin.

Earlier this week I released AutoEnrol 1.1 on plugins.moodle.org to purely deal with some compatibility issues with Moodle 2.5 and this remains the current stable version.

Today however I am happy to present AutoEnrol 1.2 which introduces a whole raft of new features and remains compatible with Moodle 2.0 to Moodle 2.5. Here’s a run down of what’s new:

  • It is now possible to add multiple instances to a single course.
  • Added an option to give instance a custom label.
  • Filtering functions now allow for partial matches.
  • Expanded filtering functions to include email address.
  • Added an option to limit number of enrolments. 
  • By default, users are now only enrolled if they aren’t already enrolled on a course.
  • Individual users can now be manually unenrolled through Users > Enrolled Users.
  • Where a user has the “unenrolself” permission and users are being enrolled on “Loading the Course” they can now unenrol themselves from the settings block.

AutoEnrol 1.2 Form

The plugin is available as a Release Candidate from here: AutoEnrol 1.2rc2. As ever I’m really keen to get feedback on this release, so if you have any suggestions please leave a comment!

**update: RC2 now supports self-unenrolment.

Just a simple straw poll

There is a tendancy to over-engineer solutions in the Moodle community sometimes, and this tends to lead to confusing interfaces or even worse something that doesn’t work as it should.

I’ve spent most of the last few months writing local plugins for Moodle; the kind that have eight tables in the database and make your mind melt as you work on them. So when I found a bit of time I decided to create a simple straw poll block which would “just work”.

straw poll
A simple straw poll

A straw poll is a simple thing, and because it is in a block we know that there should be a limited number of questions. Equally I felt it was overkill to support the exporting of complex spreadsheets to show the results. A total and a percentage should be enough for any straw poll, and if you want more than that there is the wonderful Choice activity!

So I decided that the Questions and the Responses could all be held directly in the block configuration meaning the only table that would needed in the database would be for responses. This is more efficient since block configuration is already loaded and it cuts down the number of DB queries Moodle needs to do.

straw poll config
The configuration for the example poll shown above. Only the red fields need to be filled out.

The configuration for the block is very simple, with one text box for the question, six text boxes for possible options, and a few extra options to control how the user will interact with the block. The empty options are simply ignored by the block and responses cannot be submitted for them.

I will be submitting a Beta of this block to Moodle.org soon, but if you would like to try it out now you can download it from my GitHub repository.