Hello Helen
Imagine you want to show customtext in column #3 just after the course name and with a left alignment and "My header" as the text for the column's heading.
Then you need to modify lines 49-50
$table->head = array ($strto, $strclassname, $strgrade, $strdate, $strcode);
$table->align = array ("left", "left", "left", "center", "center");
To something like
$table->head = array ($strto, $strclassname, "My header", $strgrade, $strdate, $strcode);
$table->align = array ("left", "left", "left", "left", "center", "center");
And modify lines 89-95
if ($last_userid == $certdata->userid) {
$table->data[] = array (' ', $class, $grade, $date, $code);
} else {
$table->data[] = array ('<br>', ' ', ' ', ' ', ' ');
$table->data[] = array ($name, $class, $grade, $date, $code);
$last_userid = $certdata->userid;
}
To something like
if ($last_userid == $certdata->userid) {
$table->data[] = array (' ', $class, $certdata->customtext, $grade, $date, $code);
} else {
$table->data[] = array ('<br>', ' ', ' ', ' ', ' ');
$table->data[] = array ($name, $class, $certdata->customtext, $grade, $date, $code);
$last_userid = $certdata->userid;
}