Closed (won't fix)
Project:
Quiz
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2006 at 21:32 UTC
Updated:
11 May 2007 at 20:04 UTC
If Input Format is set to PHP, code does not run, only displayed in the Quiz description field.
Comments
Comment #1
seanbfuller commentedGood catch.
For the description, this should be a simple fix to quiz_view (change to line 447):
For the other fields, this may require an update to the database to make them all include their own format column. Along those lines, it would make sense to make them all revision enabled so they use the rid of the node instead of the nid as their primary join.
I'm pretty swamped right now, so I'm not sure if I'll be able to get a patch out.
Comment #2
goose2000 commentedHey - Thank you for looking at this, I'll try today and be your verify on this one (description only for now).
But it is nice assessment tool - hope you keep going with this one...
John
Comment #3
goose2000 commentedHmm, PHP seems to be returning this to the screen for description:
n/a
The other text fields already mentioned are doing this too, so they're all consistent now. 8).
John
Comment #4
goose2000 commentedOk, I got it working. Not sure if this good or bad? But I changed the line:
$node->body = check_markup($node->body, $node->format, $check = FALSE) . theme('quiz_availability', $node);
added ',$check = FALSE' parameter which defaults to TRUE if not specified. So I guess users can not view this 'filter' ? Not clear, but here is the API text:
----------------------------------------------------------
$check Whether to check the $format with filter_access() first. Defaults to TRUE. Note that this will check the permissions of the current user, so you should specify $check = FALSE when viewing other people's content. When showing content that is not (yet) stored in the database (eg. upon preview), set to TRUE so the user's permissions are checked.
Comment #5
gilcot commentedStrange : i cannot reproduce the bug ...and Sean's correction was already in my side :/
About adding
$check = FALSE, it's a good correction. i already suggest it in another issue related to multichoice module when i was working on it.Comment #6
add1sun commentedThis is now quite different in the newer code and we are not supporting 4.7 so I'm closing this. Actually I don't see the description displayed anywhere now, but that is a separate issue from this.