Home › Forums › Legacy Support › Support queries › Setup issues › Hide Quiz Results from student profile page
Tagged: hide quiz result profile
- This topic has 15 replies, 3 voices, and was last updated 4 years, 7 months ago by logan.
-
AuthorPosts
-
August 19, 2019 at 9:22 pm #222952gabrielcapiSpectatorHello, 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?August 20, 2019 at 12:22 pm #223045loganMember
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.August 20, 2019 at 5:16 pm #223100gabrielcapiSpectatorOkay, thanks it works only in the first page, if you see older results yo can enter to see them.August 21, 2019 at 7:50 am #223129loganMemberHello, 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??August 22, 2019 at 1:42 pm #223334gabrielcapiSpectatorYes of course, here is the example: Video exampleAugust 23, 2019 at 7:28 am #223391loganMemberDear, have a look here: https://cl.ly/c046cdAugust 23, 2019 at 5:13 pm #223456gabrielcapiSpectatorHere is it again: VideoAugust 24, 2019 at 7:56 am #223477Anshuman SahuKeymasterPlease 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>August 26, 2019 at 5:03 pm #223664gabrielcapiSpectatorHi Alex, It doesn´t work, we try it and we can see every result.August 27, 2019 at 12:17 pm #223766loganMemberHey 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 });August 29, 2019 at 4:20 pm #224113gabrielcapiSpectatorHi, I did it using the ftp and nothing happened.August 30, 2019 at 10:26 am #224234loganMemberHello, 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.August 30, 2019 at 10:14 pm #224269gabrielcapiSpectatorThis reply has been marked as private.August 31, 2019 at 6:28 am #224287Anshuman SahuKeymasterPlease 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 '#'; });September 9, 2019 at 10:57 pm #225310gabrielcapiSpectatorIt's done, thank you! -
AuthorPosts
- The topic ‘Hide Quiz Results from student profile page’ is closed to new replies.