Don’t show results if test is not passed

Home Forums Legacy Support Support queries Setup issues Don’t show results if test is not passed

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #227565
    dianaw84
    Spectator
    It works!!!!! Thank you very much!!!!
    #227567
    dianaw84
    Spectator
    Only a thing, after finished quiz (and don't passed it) results don't showed and it's ok, but when a student return on course and goes to quiz, clicking in the button below "results", student anwers are showed, is possible here to show there only the marks (if student doesn't pass quiz)? Thank you!
    #227568
    dianaw84
    Spectator
    Here is where I mean https://prnt.sc/pafcv5 https://prnt.sc/pafd9t
    #227672
    logan
    Member
    Hello, no thats not possible actually the code has limitations. it cant be done. we can simply hide the button forever.
    #227883
    dianaw84
    Spectator
    Ok, doesn't matter. This code you gave me to hide the button forever, is still valid? Thank you!

    1. Add this code in your wplms-customizer.php file in wplms customizer plugin :

    add_filter('wplms_hide_quiz_result_details',function($flag,$quiz_id){

    return 1;

    },10,2);
    2. Add this script in your wp-admin -> wplms -> footer -> google anaylitics script :

    jQuery(document).ready(function(){ jQuery('body').find('.quiz_results_popup').attr('href',(jQuery('.quiz_results_popup').attr('href')+'&force')); jQuery('.unit_content').on('unit_traverse',function(){ jQuery('body').find('.quiz_results_popup').attr('href',(jQuery('.quiz_results_popup').attr('href')+'&force')); }); });

    #227997
    logan
    Member
    these code has nothing to do with the hiding mark this unit complete button. i have already replied on another topic for the hiding button. that cant be hidden. here: https://wplms.io/support/forums/topic/block-quiz-until-units-are-incompleted/
Viewing 6 posts - 16 through 21 (of 21 total)
  • The topic ‘Don’t show results if test is not passed’ is closed to new replies.