1) You have to add a quiz_comment table into the respective database tables. From memory I think they are _true_false, _multiple_choice and _input_answer
It sounds like you have already done this part. If you didn't call it quiz_comment, then anywhere I've put quiz_comment below replace it with what you actually called it.
2) You can't just invent variables out of thin air. There will be a part of quiz.php where you will find:
Code: Select all
$template->assign_block_vars("answer_row", array(
FIND this. Below you might see something like
Code: Select all
"U_QUESTION" => $row['quiz_question']
Note: It might not be $row, it might be $quiz_row, or $question_row or something like that. This is important.
Below that, add U_COMMENT, ie:
Code: Select all
"U_COMMENT" => $row/$quiz_row/$question_row/etc['quiz_comment']
Now, don't include all of the slashes
If it is $row, you'd make it $row['quiz_comment'], if it was $quiz_row it would be $quiz_row['quiz_comment'] and so on.
In the .tpl file quiz_result_body.tpl, make sure if you are adding an extra column to the layout you increase whatever colspan value is included, otherwise the layout might look strange.
Good luck