Currently I have found the text in certificate.php and been able to edit the text so that it meets my needs in verbiage, but have been unable to figure out the proper code to insert the username of the student.
The example text below is how it inserts the student's name, course and the certificate name into the email notification.
//Email text
$string['emailstudenttext'] = 'Attached is your certificate for $a->course.';
$string['awarded'] = 'Awarded';
$string['emailteachermail'] = '
$a->student has received their certificate: \'$a->certificate\'
for $a->course.
You can review it here:
$a->url';
$string['emailteachermailhtml'] = '
$a->student has received their certificate: \'<i>$a->certificate</i>\'
for $a->course.
You can review it here:
<a href=\"$a->url\">Certificate Report</a>.';
I need the username in the email as well. This is important because our staff uses primarily the username as the lookup, not the students name.$string['emailstudenttext'] = 'Attached is your certificate for $a->course.';
$string['awarded'] = 'Awarded';
$string['emailteachermail'] = '
$a->student has received their certificate: \'$a->certificate\'
for $a->course.
You can review it here:
$a->url';
$string['emailteachermailhtml'] = '
$a->student has received their certificate: \'<i>$a->certificate</i>\'
for $a->course.
You can review it here:
<a href=\"$a->url\">Certificate Report</a>.';
Please help!
Thank you,
Terry Barnett