Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter uvireuvire

    (@uvireuvire)

    Hi,

    I manage to customise the Question_Answer_Incorrect and remove the “Correct Answer and User Comments” please find solution below:

    OUTCOME EXAMPLE

    Example where to place the code:
    https://ibb.co/mRJbbLZ

    <script>
    
    const div = document.querySelector('.qsm-results-page');
    div.innerHTML = div.innerHTML.replace(/(Correct Answer: %CORRECT_ANSWER%|Comments Entered: %USER_COMMENTS%)/gi, '');
    
    </script>

    Place the code into:
    quiz-master-next/php/classes/class-qsm-results-pages.php

    PS: This could work as potential new feature, you can basically remove any text from the result page or customize anything within the result page.

    • This reply was modified 4 years, 10 months ago by uvireuvire.
    Thread Starter uvireuvire

    (@uvireuvire)

    Hello Kriti ??

    Thank you for your reply that is very usefull and good to know. The problem with this is that I wouldn’t want to show all the questions that the user has answered but only the questions that are classified as incorrect. Is there any way to disable or hide “Correct Answer and User Comments” from default? I tried to locate the file within the plugin and perhaps take some code out that will remove these two fields or apply CSS to take it off?

    Example of what I have done:

    div class=”q-a-div”>%QUESTION_ANSWER_INCORRECT%</div>

    I wrapped this with a div class and used the CSS for:

    .q-a-div {
    border: 1px solid red;
    padding: 8px;
    }

    .q-a-div,
    span {
    text-decoration: none;
    color: green;
    }

    .q-a-div,
    p {
    text-decoration: none;
    color: #008CBA;
    }

    .q-a-div,
    text {
    text-decoration: none;
    color: #c4ff0e;
    }

    Just through to share this, might help some people with a little bit of styling I will try to use Jquery or Java Script to (hide or remove specific text “Correct Answer and User Comments” within the DIV) and hopefully this will help.

    I will be ok from now on and if I do find a solution I will share on this forum ??

    Many thanks for your help anyway,

    Example link to show you what this look like:
    EXAMPLE

    • This reply was modified 4 years, 10 months ago by uvireuvire.

    Hi,

    I’m advance devloper please email me at ([email protected]) and I will be able to develop any functions you require.

    Many thanks,

Viewing 3 replies - 1 through 3 (of 3 total)