moodle-mod_certificate icon indicating copy to clipboard operation
moodle-mod_certificate copied to clipboard

Course protected images feature

Open arael opened this issue 12 years ago • 2 comments

Hi Mark,

I extended a bit your certificate plugin by adding the course limited upload of the images.

Here is the description:

The Course protected images allows the user to upload images that are visible only from Course specified during the upload.

The global uploading form has been extended by adding two fields:

  • Limit to one course (Checkbox) Selecting this checkbox is going to place the upladed image inside the $CFG->data_root/mod/certificate/image_type/course/$COURSE->shortname folder. The images are then going to be visible only form the course with the same shortname.
  • Course Shortname This field specifies the Course shortname to use during the upload. Thus the file is going to be placed in the directory specified by the input of this field. Before proceeding with the update the module validates the input by checking the existence of the course.

This is particularly useful for the Signature images because it avoids the signature to be visible in all other courses once they are uploaded.

This commits also adds the Italian language support.

The attached image shows the new form. Please let me know if you have suggestions.

Regards,

Goran upload_image_form

arael avatar Jan 24 '13 12:01 arael

Hi Arael, I do like this idea. I closed the other request you made as this is a better approach. Regarding the language pack, please do not include this in the commit but rather submit it here http://lang.moodle.org.

Once the language pack is removed from this commit and it is rebased on top of the most recent code I will review again. Thanks!

mdjnelson avatar Feb 07 '13 05:02 mdjnelson

Ok. I have merged the last code from the upstream. Let me know if I need to fix something. I tested the merge in my local installation and it worked well.

arael avatar Feb 07 '13 10:02 arael