Home › Forums › Legacy Support › Support queries › Other issues › How to insert a field to a page
Tagged: insert field
- This topic has 11 replies, 3 voices, and was last updated 3 years, 7 months ago by Veronica.
Viewing 13 posts - 1 through 13 (of 13 total)
-
AuthorPosts
-
September 20, 2020 at 10:56 pm #312551szabonyelviskolaSpectatorI would like to know how can I insert using the customizer plugin an existing field for example "quiz_remarks_in_result" to the object created after pressing the Check results button. The reason for that, that I need only quiz_remarks in quiz results for students. I could hide all the information from result page, but only together. I could not hide part by part, because in this case those element was also missing from evaluation and from instructor stat page. So I hide the all result page, and I would like to insert back the quiz-remarks. Any idea, how can I do that?September 21, 2020 at 3:03 pm #312858Anshuman SahuKeymasterplease try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
add_action('wplms_after_quiz_message',function($item_id,$user_id){ $remarks = get_user_meta($user_id,'quiz_remarks'.$item_id,true); echo $remarks; },10,2);
September 22, 2020 at 5:21 pm #313157szabonyelviskolaSpectatorThanks for the idea! It is working on some way, but this is not exactly what I was thinking. Now the quiz_remarks are shown always in post_quiz message window without pressing the check results button. I was thinking to show them in the window which is opened after presssing the check results button. Now it is empty because I was hide with div.user_quiz_result{display:none;} css code all the information. And also I would add the Retake button too. But if you will show me one element, I will try to do the other one based on your code. :) And same, after student pressing the link of quiz in his courses/results/quizes window. All information are hidden because of above css code and instead I would like to insert only the quiz_remarks for student. The above css code was the only solution to hide the questions from students but not hide the questions from instructors to evaluate and print out anytime from their stats. But this version completly hiding everything from students window (questions, remark, grade, retake button, previous evaluations) I'm working with in course quiz.September 24, 2020 at 3:09 pm #313747Anshuman SahuKeymasterremove previous code and add this one :add_action('wplms_after_quiz_message',function($item_id,$user_id){ if(bp_course_get_user_quiz_status($user_id,$item_id)==4){ $remarks = get_user_meta($user_id,'quiz_remarks'.$item_id,true); echo $remarks; } },10,2);
September 25, 2020 at 11:27 pm #314047szabonyelviskolaSpectatorI have tried, but nothing happened. let's forgot the results. make the problem simple: After pressing the Check results button in my in course quiz, earlier a window popped up with questions and results. I have hide the whole content of the window with div.user_quiz_result{display:none;} But this also hide the Retake button. How can I reinsert this Retake button to empty results window?September 26, 2020 at 4:44 am #314063VeronicaModeratoraahhaa! if you want this: But this also hides the Retake button. How can I reinsert this Retake button to empty the results window? then please share the url of the course/quiz with the credential of the admin who has already performed the test and removes this code: div.user_quiz_result{display:none;} after that i will share the code with you which hide all details except retake course buttonSeptember 26, 2020 at 4:44 am #314064VeronicaModeratoraahhaa! if you want this: But this also hides the Retake button. How can I reinsert this Retake button to empty the results window? then please share the url of the course/quiz with the credential of the admin who has already performed the test and removes this code: div.user_quiz_result{display:none;} after that i will share the code with you which hide all details except retake course buttonSeptember 26, 2020 at 11:50 am #314188szabonyelviskolaSpectatorThis reply has been marked as private.September 28, 2020 at 7:13 am #314447VeronicaModeratorhi the delay in response due to support holiday please add this code:
this will hide all questions: http://prntscr.com/up3b56.quiz_result ul.quiz_questions li .q .matchgrid_options ul li { display:none; } .quiz_result ul.quiz_questions li .q p, h5, ol li,ul li em{display:none !important;}
September 28, 2020 at 11:14 am #314512szabonyelviskolaSpectatorI think you did not read my previous message or did not take into account it. This solution is not helping me. This solution hiding the questions everywhere, also at the instructor's side. In course admin/members/stat/quiz section too. I need a solution, but I have several times pointed this out, where the questions and answers are hidden on student side but not on the instructor side. I have a better solution than yours, because it hides on student side but not on instructor: div.user_quiz_result{display:none;} But this also hide the Retake button. How can I reinsert this Retake button to an empty results window?September 29, 2020 at 7:50 am #314760VeronicaModeratorwith your provided code tried this.user_quiz_result .quiz_result{display:none;}
September 29, 2020 at 7:30 pm #314961szabonyelviskolaSpectatorThanks Veronica! You find me the solution I was waiting for! Thank you again, and you can close the topic.September 30, 2020 at 8:32 am #315072VeronicaModeratorgood to know😊 closing this one -
AuthorPosts
Viewing 13 posts - 1 through 13 (of 13 total)
- The topic ‘How to insert a field to a page’ is closed to new replies.