There are two possible solutions to this:
- one involves changing the language file and the type file
- one changes the type file only.
There are two language strings that apply to the code:'code' and 'printcode'.
'printcode' appears in the editing form and displays as "Print the code" next to the combobox with "yes" and "no". 'code' is used in the certificate report as the column head. Neither of these is used when actually printing the certificate.
Take a peek into type/unicode_landscape/certificate.php
Line 75 to 79:
// Print the code number
$code = '';
$code = $certrecord->code;
You can change the last line into
$code = 'unique certificate code: '.$certrecord->code;
This adds your label left to the code.
Line 126 displays it:
cert_printtext(170, 500, 'C', 'FreeSerif', '', 10, $code);
You can change the size by replacing 10 with a smaller number. You can change the colour by inserting a line like $pdf->SetTextColor(0,0,120);
The numbers are decimal RGB-numbers.
You can alternatively change line 126 to:
cert_printtext(170, 500, 'C', 'FreeSerif', '', 10, 'unique certificate code: '.$code);
cert_printtext(170, 500, 'C', 'FreeSerif', '', 10, get_string('code', 'certificate').': '.$code);
The latter uses the string from the language file as a label. Remember to put a ; at the end of each line.