Upload tutor relationships

Blocks ::: block_tutorlink
Maintained by Mark Johnson
This block allows assignment of user roles in another user's context by upload of CSV flatfiles. Imports can be done by ad-hoc upload, or by a regular cron job.
Latest release:
15 sites
1 downloads
2 fans
Current versions available: 1

This block is a tool to allow users to be bulk assigned a role in other user's contexts, via flat file upload.  It is designed to assign a teacher to a student as their personal tutor.

The block accepts CSV files in the following format:
operation, user_to_assign, user_assign_to

  • operation can be add (to assign) or del (to unassign)
  • user_to_assign is the ID Number of the user you wish to give the role to
  • user_assign_to is the ID Number of the user you're assigning the first user to

The role being assigned can be configured in the block's settings.

The file can be processed by the block on demand through the block interface itself, or automatically via a cron job.  The block's settings allow a location to be configured for the cron file, and processed files can be archived if required.

New in version 2.1:

  • Wildcard deletion supported (see Documentation)
  • operation column now case-insensitive

Development of version 2.1 sponsored by Connecting Waters Charter School (http://www.connectingwaters.org)

Please dont report bugs here

If you experience an error with the block, or would like to request a feature, please use the "Bug Tracker" link below.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Mark Johnson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Wazza
    Fri, 9 Nov 2012, 10:18 PM
    I would really like to use this block again. I have used it in 1.9.

    There's just one thing I would like to see altered, if possible. Can you make it so that I can upload a CSV file which only contains usernames in moodle?

    Our Studentmanagement program can provide me with lists of usernames:
    student_username, teacher_username

    The ID number for us is a long text with commas in it. We can't upload that.
  • Jamie Tinley
    Fri, 25 Jan 2013, 4:17 AM
    Awesome block and worked in 2.3 but I just upgraded to 2.4 which I know introduced the capability addinstance which is throwing an error for me. I edited db/access.php without success. Any plans for when this blow will work for 2.4? Thanks
  • Mark Johnson
    Tue, 29 Jan 2013, 7:15 PM
    Hi Jamie,
    I plan to make all my plugins work with 2.4 although I can't promise when as I'm not doing Moodle development as paid work at the moment. I hope to have a chance to look at it sometime over the next month.
  • Jamie Tinley
    Tue, 16 Apr 2013, 6:46 AM
    Thanks Mark! Your work is GREATLY appreciated. I wish I knew more to help!
  • Jamie Tinley
    Tue, 21 May 2013, 5:41 AM
    Hey Mark, any chance you might get to this by this summer? I am hoping to upgrade our site to 2.5. If it works for 2.4 will it likely work for 2.5? Thanks again, trying to upgrade our entire district this summer. Thanks!
  • Dora K.
    Sat, 13 Sept 2014, 11:57 PM
    Hello! Are you gonna upgrade this block for moodle 2.6 and/or 2.7? It would be really helpful! Thanks!
Please login to post comments