• Resolved wisenilesh

    (@wisenilesh)


    How can change the settings and make one default settings for all the quizzes on the website so that we do not have to change the “fail/pass texts” and other settings again and again?

Viewing 1 replies (of 1 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi wisenilesh,
    I have bad news, then good news for you.

    HD Quiz does not have global default options you can set for all quizzes, however, HD Quiz is currently under a complete redevelopment, and this feature has already been included!

    Please note that there is no official release date for the next version, but it will likely be pushed out in ~30 days.

    If you are unable to wait and would like to force the fail/pass messages for ALL QUIZZES, then you can do so by editing template.php of HD Quiz. Lines 29 and 30 are as follows.

    	$passText = trim(preg_replace('/\s+/', ' ', $passText));
    	$failText = trim(preg_replace('/\s+/', ' ', $failText));

    You can replace them with something like the following

    	$passText = '<p>Your pass text HTML</p>';
    	$failText = '<p>Your fail text HTML</p>'

    Just make sure your HTML properly escapes single quotes ' with a backslash \, and please note that doing the above will change the text for all quizzes on the site.

Viewing 1 replies (of 1 total)
  • The topic ‘Default Settings for All Quizes?’ is closed to new replies.