QUIZ EXAMPLE TEMPLATE

This is another cool example template for a poll.

plugin.tx_myquizpoll_pi1.isPoll = 1
plugin.tx_myquizpoll_pi1.showPollResultLink = 1
plugin.tx_myquizpoll_pi1.myVars.answers {
  input_id = 1
  input_label = 1
}
plugin.tx_myquizpoll_pi1.useCookiesInDays = 28
plugin.tx_myquizpoll_pi1.secondPollMode = 1
plugin.tx_myquizpoll_pi1.tableAnswers = tx_myquizpoll_voting
plugin.tx_myquizpoll_pi1.templateFile = EXT:myquizpoll/examples/template_poll_basic.html

Templates for whole sites

Questions page:
1. Empty or reference to TEMPLATE_CAPTCHA_NOT_OK.
2. Multiple reference to TEMPLATE_QUESTION.
3. Reference to TEMPLATE_QUIZ_USER_TO_SUBMIT (dontShowUserData = 0), to TEMPLATE_SUBMIT (dontShowUserData = 1) or to TEMPLATE_NO_SUBMIT (if no rights)
4. Dont delete the marker HIDDENFIELDS !!!!!!!
5. Reference to TEMPLATE_HIGHSCORE_URL. REF_HIGHSCORE_URL will be empty if is poll or dontShowHighscoreLink = 1 !!!
Optional: ###REF_POLLRESULT_URL### = Reference to TEMPLATE_POLLRESULT_URL. REF_POLLRESULT_URL will be empty if is quiz or showPollResultLink = 0 !!!

###REF_ERRORS###
###REF_QUESTIONS### ###REF_SUBMIT_FIELDS### ###HIDDENFIELDS### ###REF_POLLRESULT_URL###

Result page:
1. Empty or reference to TEMPLATE_CHEATING.
2. Reference to TEMPLATE_POLL_SUBMITED (poll) or to TEMPLATE_QUIZ_USER_SUBMITED (quiz; if "dontShowUserData=0" and "dontShowUserResult=0", else empty).
3. Multiple reference to TEMPLATE_QRESULT (empty if is poll or "dontShowCorrectAnswers=1").
4. Reference to TEMPLATE_RESULT_POINTS or TEMPLATE_RESULT_POINTS_TOTAL (if is quiz and "dontShowPoints=0", else empty)
5. Reference to TEMPLATE_NEXT (if "showAnswersSeparate=1" and is quiz, else empty)
6. Reference to TEMPLATE_POLLRESULT (if is poll and "dontShowPollResult=0", else empty)
Optional: Reference to TEMPLATE_POLLRESULT_URL. REF_POLLRESULT_URL will be empty if is quiz or showPollResultLink = 0 !!!

###REF_RES_ERRORS### ###REF_INTRODUCTION### ###REF_QRESULT### ###REF_QPOINTS### ###REF_NEXT### ###REF_POLLRESULT### ###REF_POLLRESULT_URL###

Template-Snippets

###VAR_QUESTION_IMAGE###
###VAR_QUESTION_TITLE###
###VAR_QUESTION_NAME###
###VAR_QUESTION_ANSWER###
You can use this marker too: ###REF_QR_ANSWER_CORR### nix


###NO_SUBMIT###

###DOUBLE_ENTRY###

###NOT_LOGGEDIN###

###CHEATING###

###POLLRESULT_URL###

###THANK_YOU### ###QUESTION_NAME### ###VAR_QUESTION_NAME###
###USER_ANSWER### ###VAR_USER_ANSWER###

###VAR_QUESTION_IMAGE###
###VAR_QUESTION_TITLE###
###VAR_QUESTION_NAME###
###VAR_ANSWER###: ###VAR_PERCENT###% (###VAR_HITS###)
 
###VOTES###: ###VAR_VOTES###
###REF_QR_EXPLANATION###

You can use ###VAR_LINKTAG### too.

###VAR_TITLE###
###EXPLANATION###: ###VAR_EXPLANATION###
Show all questions and correct answers in the email. (You can use ###REF_QR_ANSWER_ALL### instead of ###REF_QR_ANSWER_CORR### and you can use ###VAR_QUESTION### and ###VAR_QUESTIONS###) ###REF_QUESTION_IMAGE_BEGIN###
###VAR_QUESTION_TITLE###: ###VAR_QUESTION_NAME###
###REF_QR_ANSWER_ALL### ###REF_QR_EXPLANATION### ###REF_QUESTION_IMAGE_END### ###REF_DELIMITER###

Email to admin (if email.send_admin > 0):
1. Reference to TEMPLATE_QUIZ_USER_SUBMITED or TEMPLATE_POLL_SUBMITED
2. Reference to TEMPLATE_QUIZ_ANALYSIS_x. x depends on "showAnalysis". REF_QUIZ_ANALYSIS will be empty if showAnalysis = 0 !!!
3. Reference to TEMPLATE_EMAIL_ALLANSWERS if "showAllCorrectAnswers = 1".

###SUBJECT### ###EMAIL_TAKEN### ###QUIZ_NAME### ###REF_INTRODUCTION### ###REF_QUIZ_ANALYSIS### ###REF_EMAIL_ALLANSWERS###

Email to quiz taker (if email.send_user > 0):
1. Reference to TEMPLATE_QUIZ_USER_SUBMITED or TEMPLATE_POLL_SUBMITED
2. Reference to TEMPLATE_QUIZ_ANALYSIS_x. x depends on "showAnalysis". REF_QUIZ_ANALYSIS will be empty if showAnalysis = 0 !!!
3. Reference to TEMPLATE_EMAIL_ALLANSWERS if "showAllCorrectAnswers = 1".

###SUBJECT### ###REF_INTRODUCTION### ###REF_QUIZ_ANALYSIS### ###REF_EMAIL_ALLANSWERS###