Jump to ContentJump to Navigation/Login

Site Search

Login


[Register]

Course Registration

Understanding Web Accessibility

Register Now for the April 18 start date.

Donate

If you have found ATutor useful, please consider making a donation.

Donate

Services

Members Online

No Members Logged In

(7 guests in past 15 min.)

Visitors

Locations of visitors to this page

Advertisements

Support Forums

ATutor Support



Which file formats/outputs text in the "optional feedback" section of tests?


You must be signed-in to post.

AuthorSubject
  Page: 1
kiwilara


Subject: Which file formats/outputs text in the "optional feedback" section of tests?Quote this post in your reply
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
Posted: 2010-01-18 21:47:39
kiwilara


Subject: Re: Which file formats/outputs text in theQuote this post in your reply
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.
Posted: 2010-01-19 06:12:13
 Page: 1

You must be signed-in to post.