Hide Quiz Results from student profile page

Home Forums Legacy Support Support queries Setup issues Hide Quiz Results from student profile page

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #222952
    gabrielcapi
    Spectator
    Hello, we want to hide this results of quizzes in some courses, cause we don´t want to show the results with the questions and answers: Example, image where we want to hide the answers. Or if we have the same but we don´t want to clic on the quiz name to see the results... just we want that students can see the total result... Video where we can enter to quiz results. Can we have an option to change this? if we want to show or not this results?
    #223045
    logan
    Member

    Hello,

    try this code in wp-admin > WPLMS > Footer > Google Analytics Code.

    <script> jQuery( document ).ready(function($) { jQuery(".course-results .user_results ul.quiz_results a").removeAttr("href"); });

    </script>

    it will remove the link from the title.
    #223100
    gabrielcapi
    Spectator
    Okay, thanks it works only in the first page, if you see older results yo can enter to see them.
    #223129
    logan
    Member
    Hello, please share a screenshot of the issue or video of the steps. are you saying it works only for the first page, another pages number like 2, 3, 4 .. it does not work??
    #223334
    gabrielcapi
    Spectator
    Yes of course, here is the example: Video example
    #223391
    logan
    Member
    Dear, have a look here: https://cl.ly/c046cd
    #223456
    gabrielcapi
    Spectator
    Here is it again: Video
    #223477
    Anshuman Sahu
    Keymaster
    Please remove the previously given code and add this in wp-admin > WPLMS > Footer > Google Analytics Code.     <script> jQuery( document ).ready(function($) { jQuery('body').delagate(".course-results .user_results ul.quiz_results a","click",function(event){ event.preventDefault(); }); });   </script>
    #223664
    gabrielcapi
    Spectator
    Hi Alex, It doesn´t work, we try it and we can see every result.
    #223766
    logan
    Member
    Hey there, Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php  Or in Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel: add_action('wp_footer',function(){ ?> https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js   jQuery( document ).ready(function($) {   jQuery('body').delagate(".course-results .user_results ul.quiz_results a","click",function(event){   event.preventDefault();   });   });     <?php });
    #224113
    gabrielcapi
    Spectator
    Hi, I did it using the ftp and nothing happened.
    #224234
    logan
    Member
    Hello, please share your FTP credentials so that i can check this at your end. i have tried from wp-admin >> plugins >> plugin editor.  and it does not allow me to save the changes.
    #224269
    gabrielcapi
    Spectator
    This reply has been marked as private.
    #224287
    Anshuman Sahu
    Keymaster
     

    Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel:

      add_filter('wplms_user_quiz_results_link_action',function (){   return '#'; });
    #225310
    gabrielcapi
    Spectator
    It's done, thank you!
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Hide Quiz Results from student profile page’ is closed to new replies.