Forum topic

5 posts / 0 new
Last post
smporter
Last seen: 1 month 1 week ago
Joined: 01/22/2019 - 10:07
Moodle Connector Profile Picture

Can the IMS connect the profile pic in Genesis to Moodle? If so, I would like to request that feature. Low level, but would be nice to have.

Status: 
Answered
No votes yet
dparker
Last seen: 15 hours 47 min ago
Joined: 05/17/2019 - 21:42
Moodle User Images

Hello,

I did some research and this is the main page regarding bulk import of images.  There does not appear to be a API for doing this but I have forwarded this to the developers to give the official response on this.

https://docs.moodle.org/33/en/User_pictures

Dana

No votes yet

*GNECsis Support Specialist*

aschrock
Last seen: 1 day 16 hours ago
Joined: 01/22/2019 - 10:07
Design Option

Hi Stephen,

There is definitely not going to be an option through the IMS enterprise file. I don't think that would be very efficient anyway since it would mean transferring over all of the image files every time to Moodle, probably separately.

I think the more realistic option is to use the "Upload user pictures" option in Moodle - site administration/users/accounts/Upload user pictures. I think we would want to use the same settings as is being used by the Moodle Export utility to determine which pictures to export into the zip file, so it would become a link in that tools area. In this way, we are only putting into the file those students/faculty that are in active Moodle courses instead of dumping everyone. I think this would be doable. NOTE: I am looking at the Moodle 3.8 version so not sure how far back this is available.

https://docs.moodle.org/38/en/User_pictures

There is also an option to skip pictures if they are already uploaded. I know at EuNC, at least, we don't upload pictures but those that want them upload their own - and it often may be different there than what they would show in the SIS.

Let me know if you think this would work for you.

Alan

No votes yet

GNECsis Translation, data import, specialist programmer 

smporter
Last seen: 1 month 1 week ago
Joined: 01/22/2019 - 10:07
Pics

I thought you could custom map fields in IMS. Did I read that wrong?
Genesis is our main source of pictures.
If we need to use Moodle manually, can Genesis export to a file for import into Moodle? Using the required:

  • The image files should be named after the username, the id number or the id of the student (along with the correct image file extension.) For example, a student with the username jbrown98 would have a picture called jbrown98.jpg
  • Image types supported include gif, jpg, and png.
No votes yet

Stephen Porter
Nazarene Theological Seminary

aschrock
Last seen: 1 day 16 hours ago
Joined: 01/22/2019 - 10:07
Hey Stephen,

Hey Stephen,

I can do whatever with the XML, but there are only certain things that the IMS plugin on the Moodle side will accept. I don't see any options for mapping other than near the bottom of the settings where you can play with the different values for course information. There is nothing there for image. Plus, I would need to send over the images every time the file is sent which would not be very efficient for your data traffic.

I don't see a way of automating the user picture upload - no php file that could be done with a cron. I think your best bet is to have an option to manually generate the zip, download and the upload it to your moodle site occasionally. If I drop it to the Moodle server, you don't have a way to get to it easily. If you would modify the php to accept the image file with default parameters and be able to run it via php/cron, then I could drop the file to your server, but it takes some programming on the moodle site to accomplish that (at this point). I also don't see any plugins that do this - I did a quick look.

Alan

No votes yet

GNECsis Translation, data import, specialist programmer