Example template for advanced statistics! Test it with this Typoscript:
plugin.tx_myquizpoll_pi1 { dateFormat = d.m.Y _LOCAL_LANG.en.no_name = insert here your name pageQuestions = 5 showHighscore = 0 dontShowHighscoreLink = 1 dontShowCorrectAnswers = 1 showAllCorrectAnswers = 1 userData.askAtQuestion = 0 userData.askAtFinal = 1 advancedStatistics = 1 templateFile = EXT:myquizpoll/examples/template_statistics.html }
Questions page:
1. Empty or reference to TEMPLATE_CAPTCHA_NOT_OK.
2. Reference to TEMPLATE_QUIZ_TIME_LIMIT. REF_QUIZ_LIMIT will be empty if "quizTimeMinutes = 0".
3. Reference to TEMPLATE_PAGE_TIME_LIMIT. REF_PAGE_LIMIT will be empty if "pageTimeSeconds = 0".
4. Multiple reference to TEMPLATE_QUESTION.
5. Reference to TEMPLATE_JOKERS. REF_JOKERS will be empty if "useJokers = 0".
6. Reference to TEMPLATE_QUIZ_USER_TO_SUBMIT, to TEMPLATE_SUBMIT or to TEMPLATE_NO_SUBMIT (if no rights)
7. Dont delete the marker HIDDENFIELDS !!!!!!!
8. Reference to TEMPLATE_HIGHSCORE_URL. REF_HIGHSCORE_URL will be empty if is poll or dontShowHighscoreLink = 1 !!!
9. Reference to TEMPLATE_POLLRESULT_URL. REF_POLLRESULT_URL will be empty if isPoll = 0 !!!
Result page:
1. Empty or reference to TEMPLATE_CHEATING.
2. Reference to TEMPLATE_POLL_SUBMITED (poll) or to TEMPLATE_QUIZ_USER_SUBMITED (quiz).
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_SKIPPED (if "allowSkipping=1" and is quiz, else empty)
6. Reference to TEMPLATE_NEXT (if "showAnswersSeparate=1" and is quiz, else empty)
7. Reference to TEMPLATE_POLLRESULT (if is poll and "dontShowPollResult=0", else empty)
8. Reference to TEMPLATE_POLLRESULT_URL. REF_POLLRESULT_URL will be empty if isPoll = 0 !!!
Optional: ###REF_HIGHSCORE_URL### = Reference to TEMPLATE_HIGHSCORE_URL. REF_HIGHSCORE_URL will be empty if is poll or dontShowHighscoreLink = 1 !!!
Optional: ###REF_QUIZ_LIMIT### = Reference to TEMPLATE_QUIZ_TIME_LIMIT. REF_QUIZ_LIMIT will be empty if "quizTimeMinutes = 0".
Last/final page (if pageQuestions > 0):
1. Empty or reference to TEMPLATE_CAPTCHA_NOT_OK.
2. Reference to TEMPLATE_NO_MORE. REF_NO_MORE will be empty if pageQuestions = 0 !!!
3. Reference to TEMPLATE_QUIZ_USER_SUBMITED if userdata.showAtFinal = 1, else empty
4. Reference to TEMPLATE_QUIZ_ANALYSIS_x or a page content. x depends on "showAnalysis". REF_QUIZ_ANALYSIS will be empty if showAnalysis = 0 and showEvaluation = 0 !!!
5. Reference to TEMPLATE_QUIZ_USER_TO_SUBMIT if userdata.askAtFinal = 1, else empty
6. Dont delete the marker HIDDENFIELDS !!!
7. Reference to TEMPLATE_HIGHSCORE. REF_HIGHSCORE will be empty if showHighscore = 0 !!!
8. Reference to TEMPLATE_HIGHSCORE_URL. REF_HIGHSCORE_URL will be empty if dontShowHighscoreLink = 1 !!!
Optional: ###RESTART_QUIZ### and ###RESET_COOKIE###
Instead of VAR_ANSWER_POINTS you can use VAR_QUESTION_POINTS or VAR_NEXT_POINTS (test it).
###REF_QUESTION_IMAGE_BEGIN######VAR_QUESTION_IMAGE### |
Note: the markers ###VAR_PERCENT### and ###VAR_COUNTS### are values of all quiz takers and can be used only on the final page!
Also avaiable: VAR_MISSING_POINTS and VAR_TMISSING_POINTS
###RESULT_FOR###:
###NAME###: ###REAL_NAME###
###EMAIL###: ###REAL_EMAIL###
###HOMEPAGE###: ###REAL_HOMEPAGE###
###NO_SUBMIT###
###DOUBLE_ENTRY###
###NOT_LOGGEDIN###
###CHEATING###
###VAR_NO### ###SKIPPED###
No more questions. You can use here these Markers too: ###RESTART_QUIZ###, ###CORRECT_ANSWERS###, ###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS### (###TOTAL_POINTS###: ###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###)###NO_MORE### ###YOUR_EVALUATION###
Highscore-list. You can use this markers too: VAR_PERCENT, VAR_MAX, VAR_O_MAX, VAR_TIME
###NUMBER### | ###POINTS### | ###PERCENT### | ###NAME### | ###DATE### |
---|---|---|---|---|
###VAR_COUNT### | ###VAR_POINTS### | ###VAR_O_PERCENT### | ###REF_HIGHSCORE_QUIZ_TAKER### | ###VAR_DATE### |
###HIGHSCORE_URL###
###CAPTCHA_NOT_OK###
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###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".
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".