About user pictures

About user pictures

by xavier gibert -
Number of replies: 0
I'm interested in lock user pictures in my moodle instalation. I've been trying to do that but i find it impossible without modify some internal code.

In users/edit.php, it loock for every $field=get_user_fieldnames() to set the eval('document.form.$field.disabled=true'). Into this fields there is one called "picture".

The problem is the field to upload te new photo is called "imagefile" (users/edit.html) then if I set the $CFG->auth_user_picture_editlock = 1; it does not lock the field, and if I set $CFG->auth_user_imagefile_editlock = 1; the script doesn't check the variable.

I'm also interested to lock the checkbox "deletepicture" to delete user pictures and it's displayed always if user has picture.

Could somebody help me?

I actualy have 1.5 alpha moodle 2005051500 version.

Thanks a lot

xavi
Average of ratings: -