Enrol by user profile fields
Maintained by
Nicolas Dunand
This plugin allows users to be enrolled according to any value stored in their user profile.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
My idea is, then enrollment with one certain user profile field shout have a time, when it expires.
those users enroled by a certain field would be enroled for a certain time only. So the enrolment "lasts" for a short time only. When newly enrolled with a special key, Enrolement is valid for 30/45 days only. My thoughts wrong anywhere?
It is not possible at the moment. However, how would this work ? If the user profile field values stay the same, after the end of the enrolment period the user would be enrolled again ?
Rolf
If the plugin is not configurer correctly at the site level, it won't show in the enrolment methods in a cours.
Thanks for reporting back. Without more information about the exact database error it will be difficult to debug any further. However, as forcing the scheduled task to run again solved the issue it is likely that what caused this was a temporary database condition.
Glad to hear all is fine, cheers!
No idea why this happened at all.
Kind regards,
George
I'm using the latest build of your plugin (2018092300) with the latest build of Moodle 3.5.3+! "Enrol users immediately at login" is checked. "Force enrolments" is working well, but executing the scheduled task "processenrolments_task" failed because of database write error! So I guess this is causing the issue, right? Is there anything I can do to get this process working again? The other task "invalidatecache_task" is working smoothly.
Kind regards,
George
Things to check:
1. Does "force enrolments" work as expected?
2. If using the latest version, if "Enrol users immediately at login" is not checked, then enrolments are only processed when clicking "Force" or by cron, but not at each login anymore.
3. Try to manually start this plugin's scheduled tasks (in Moodle admin > Server > Scheduled tasks).
May I ask if you could provide me with some tips or hints as I actually have no idea what the problem is?!
Kind regards,
George
I installed your plugin but when i go to configurations, it showme nothing.
Thank you
You should be able to simply call enrol_attributes_plugin::process_enrolments() to force the plugin enrolments routine to run.