|
[
Permalink
| « Hide
]
Lorenzo Nicora added a comment - 14/Jul/07 04:10 AM
Interface for bulk operations on users should also allow enrolling (and unenrolling) to courses (or assigning role in a context)
Following Lorenzo's suggestion, I've put together an interface for assigning roles to a single user in multiple contexts. It's hacked together from /admin/user.php and /admin/roles/assign.php
It isn't anything like as ambitious as the project you've outlined, and may in fact be superseded by the full release of Moodle 1.9. At the very least, the functions in userassignroleslib.php might prove useful. They get contexts in which the user is assigned a given role, and the contexts in which the user is not. Perhaps they should really go into /lib/datalib.php I haven't put any of the new messages into a language pack, and don't know if I need to make special allowances for MNET users. My concerns should be fairly obvious in the comments. I hope it's useful to you. If not, maybe it could at least go into an upcoming 1.8.x release. Regards, Chris I hope I'm posting in the right bug here ...
I noticed that it is possible to include default values for uploading users from a text file - great idea. > I don't see the point in having an account name in this form.
Values of fields in "Default values" section are proccesed as templates where some special character sequences are replaced with other values (eg. %f is replaced by the first name of the user). This way, if you want so, your CSV file can contain only the first and last names of users, and all other fields, including the username, will be generated based on them. Thanks, see it now.
I would have preferred that the helpfile was replaced one with another file name (uploadusers2.html). This way the (rather important) changes will never make it to the translated help files. Hi Yu,
The contents of help file en_utf8\help\filters\date.html seems to be duplicated. Mits |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||