WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Pro-Quiz
[resolved] Matrix question corrects to right answer after hitting check (2 posts)

  1. interfool
    Member
    Posted 8 months ago #

    If you answer a Matrix question incorrectly, AND you have "display incorrect answer" turned on, when you hit check answer, the page immediately displays the correct answer, unlike all other question types, which continue to display the incorrect answer and allow you to correct it.

    I made a demo quiz for you to see the problem. If you answer the first question incorrectly, move to the next one and then go back, you'll see what I mean. Quiz: http://azs.somenewfrog.com/matrixproblem/

    There are several matrix questions that all work improperly at that test page.

    Thanks,

    Interfool

    http://wordpress.org/plugins/wp-pro-quiz/

  2. interfool
    Member
    Posted 8 months ago #

    I fixed this HUGE BUG myself, after hunting thru the code. I modified the wpProQuiz_front.js, commented out some lines and minified it. If anyone else encounters this, contact me for the code. Or see, starting line 489:

    //plugin.methode.resetMatrix($question);

    //$question.find('.wpProQuiz_sortStringItem').each(function() {
    // var x = matrix[$(this).data('pos')];
    // if(x != undefined)
    // x.append(this);
    //}).css({'box-shadow': '0 0', 'cursor': 'auto'});

    //$question.find('.wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion').sortable("destroy");

Reply

You must log in to post.

About this Plugin

About this Topic