Fullname vs REAL full name in Certificates

Fullname vs REAL full name in Certificates

by Doug Maynard -
Number of replies: 2
My client, for some sort of privacy issues , requested that only firstnames of students appear in places like participant lists and forums. No problem there - we changed Security -> Site Policies - Full Name Display to "First Name". Mostly this is OK but ...

Now the course completion certificates only show the first name, and they really should show the first and last names.

I've spent a few fruitless days banging my head on this one.

thanks

Doug
Average of ratings: -
In reply to Doug Maynard

Re: Fullname vs REAL full name in Certificates

by Doug Maynard -

But now having read your customizing instructions very carefully again .... ten minutes - SUCCESS!

in about line 107  of mod/certificate/type/custom_landscape/certificate.php

this:

 cert_printtext(170, 230, 'C', 'Helvetica', '', 30, utf8_decode($studentname));

becomes:

 cert_printtext(170, 230, 'C', 'Helvetica', '', 30, utf8_decode($USER->firstname . ' ' . $USER->lastname ));

Thanks for a great mod

Cheers

Doug

Average of ratings: Useful (1)
In reply to Doug Maynard

Re: Fullname vs REAL full name in Certificates

by E. L. Cooper -
Lovely! I do love the collaboration of open source so much.