Upper case in custom certificate

Upper case in custom certificate

by Low Jiun Jack -
Number of replies: 1

Hi

I saw post that modify codes to enforce names in capital letters when put into certificates.

My question is where do I do modify that code? how do I do that? I saw the post and it just share 1 line of code but I do not know where to make that change.

thanks.

Average of ratings: -
In reply to Low Jiun Jack

Re: Upper case in custom certificate

by Mark Nelson -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Depends what you want to put in capital letters. If it was the student name for example it would be in https://github.com/mdjnelson/moodle-mod_customcert/blob/MOODLE_311_STABLE/element/studentname/classes/element.php#L46 and https://github.com/mdjnelson/moodle-mod_customcert/blob/MOODLE_311_STABLE/element/studentname/classes/element.php#L60. If you want everything capitalised then you could fiddle around in the methods 'render_content' and 'render_html_content' in the 'element_helper' class, see https://github.com/mdjnelson/moodle-mod_customcert/blob/MOODLE_311_STABLE/classes/element_helper.php.
Average of ratings: Useful (1)