Changing comments for quiz scores
(3 posts) (3 voices)-
I would like to tailor the comments about how the user did to the content of the quiz. So a score of 10, for example, on a quiz about language would say something like "You're a master linguist" whereas a score of 10 on a quiz about Buddhism could say something like "You are enlightened."
I could probably find the language and change it, but I don't want to do it for all quizzes but rather on a one-at-a-time basis. Not sure how to accomplish this.
Thanks, nice plug-in.Posted 2 years ago # -
You have to edit the show_quiz.php file. Go the the 55th line - you'll get something like this...
//0-9 10-19%, 20-29%, 30-39% 40-49%
$all_rating = array(t('Failed'), t('Failed'), t('Failed'), t('Failed'), t('Just Passed'),
// 100% More than 100%?!
t('Satisfactory'), t('Competent'), t('Good'), t('Very Good'),t('Excellent'), t('Unbeatable'), t('Cheater'));Change those.
Posted 2 years ago # -
Binny,
Great plugin - just what the doctor ordered!
Have changed the text in line 55, but slightly confused as to what quiz score matches to which bit of text, is each one basically 10%?Posted 2 years ago #
Reply
You must log in to post.