$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "dbtech_vbquiz_taken
SET
percent_result_id = " . intval($percent_total) . ",
final_score = " . intval($final_score) . ",
possible_score = " . intval($possible_score) . ",
judged = '1',
judgerid = " . intval($vbulletin->userinfo['userid']) . "
WHERE
taken_id = " . intval($subid)
);
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "dbtech_vbquiz_taken
SET
percent_result_id = " . intval($percent_total) . ",
final_score = " . intval($final_score) . ",
possible_score = " . intval($possible_score) . ",
final_result_text = '" . intval($percent_total) . "%',
judged = '1',
judgerid = " . intval($vbulletin->userinfo['userid']) . "
WHERE
taken_id = " . intval($subid)
);
Sorry, it's a bug in the code.
I'll fix it in the next release. If you want to fix it yourself manually for now
Open dbtech/vbquiz/actions/quizcomm.php
About line 714 you'll find
Change it toPHP:$vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "dbtech_vbquiz_taken SET percent_result_id = " . intval($percent_total) . ", final_score = " . intval($final_score) . ", possible_score = " . intval($possible_score) . ", judged = '1', judgerid = " . intval($vbulletin->userinfo['userid']) . " WHERE taken_id = " . intval($subid) );
PHP:$vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "dbtech_vbquiz_taken SET percent_result_id = " . intval($percent_total) . ", final_score = " . intval($final_score) . ", possible_score = " . intval($possible_score) . ", final_result_text = '" . intval($percent_total) . "%', judged = '1', judgerid = " . intval($vbulletin->userinfo['userid']) . " WHERE taken_id = " . intval($subid) );
After that, when you judge a quiz it should display correctly.
We use essential cookies to make this site work, and optional cookies to enhance your experience.