ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Which file formatsoutputs text in the optional feedback section of tests


  • 2010-01-18 21:47:39

    Which file formatsoutputs text in the optional feedback section of tests

    Is there a file (other than include/lib/output.inc.php) that formats and outputs text entered in the "optional feedback" section of questions used in tests?

    [tex][/tex] tags are not interpreted when entered here but are interpreted everywhere else.

    I am guessing that I need to copy the code about how to interpret [tex][/tex] tags from include/lib/output.inc.php to whatever file does the formatting and output of text from the optional feedback section; but the problem is I don't seem to be able to find the file that is doing this formatting!! (and am also a little confused as to why the formatting would not be being handled by include/lib/output.inc.php anyway)

    Thanks a lot,
    Lara



    Things to describe:
    Operating system ATutor is installed on -
    ATutor version - 1.63
    Patch #s applied 1-11 (excluding 4 and 7)
    ATutor theme name - default
    PHP version - ?
    MySQL version - ?
    Webserver & version - ?
    Copies of error messages -
    Changes to default settings -
    Web browser being used - latest firefox

  • 2010-01-19 06:12:13

    Re: Which file formats/outputs text in the

    Fix to above in Atutor 1.6.3 (after much frustration--given I know neither php nor html syntax!)

    Line 152 of ATutor-1.6.3/ATutor/tools/view_results.php
    changed from commented out line below to the line now above

    if ($row['feedback']) {
    /*line 151*/
    echo '<div class="row"><p><strong>'._AT('feedback').':</strong></p><p> ';
    /*new line 152*/
    echo AT_print($row['feedback'],'tests_questions.feedback').'</p></div>';
    /*removed line 152*/
    /*echo nl2br($row['feedback']).'</p></div>';*/
    }

    This seems to work, but I've only checked against my own test results not other users.

    There is another file with the same name within the tests directory which I've also changed in the same manner (well that was the one I changed first---and it didn't seem to work, cue increasing frustration!!); really not sure when this second file gets called or by what function but I've left it changed for now.