Test it with this TypoScript (replace 115 with another UID):
plugin.tx_myquizpoll_pi1.templateFile = EXT:myquizpoll/examples/template_analysis.html plugin.tx_myquizpoll_pi1.finishedMinPercent = 50:115 plugin.tx_myquizpoll_pi1.showAnalysis = 49.9,100:115 plugin.tx_myquizpoll_pi1.pageQuestions = 4 plugin.tx_myquizpoll_pi1.sortBy = random plugin.tx_myquizpoll_pi1.userData.askAtQuestion = 1 plugin.tx_myquizpoll_pi1.dontShowHighscoreLink = 1 plugin.tx_myquizpoll_pi1.showAnswersSeparate = 1 plugin.tx_myquizpoll_pi1.noNegativePoints = 1 plugin.tx_myquizpoll_pi1.myVars.questions.eo_align = tx_myquizpoll_pi1-right,tx_myquizpoll_pi1-left plugin.tx_myquizpoll_pi1.myVars.questions.eo_border = inset,outset plugin.tx_myquizpoll_pi1.myVars.answers.eo_color = #eee,#ddd,#ccc,#bbb,#aaa plugin.tx_myquizpoll_pi1.myVars.list.even_odd = -odd,-even plugin.tx_myquizpoll_pi1.myVars.list.list_face = Comic Sans MS,Edda,Enviro plugin.tx_myquizpoll_pi1.pageTimeSeconds = 60 plugin.tx_myquizpoll_pi1.quizTimeMinutes = 5 plugin.tx_myquizpoll_pi1.sortHighscoreBy = time plugin.tx_myquizpoll_pi1._CSS_DEFAULT_STYLE ( .tx_myquizpoll_pi1-title { font-size: 12pt; font-weight: bold; color: #757575; font-family: helvetica,arial,sans-serif; } .tx_myquizpoll_pi1-question { font-size: 11pt; font-weight: normal; color: #757575; font-family: helvetica,arial,sans-serif; } .tx_myquizpoll_pi1-answer, .tx_myquizpoll_pi1-answer select { font-size: 10pt; font-weight: normal; color: #757575; font-family: helvetica,arial,sans-serif; } .tx_myquizpoll_pi1-explanation { font-size: 11pt; font-weight: normal; font-style: italic; color: #757575; font-family: helvetica,arial,sans-serif; } .tx_myquizpoll_pi1-false { text-decoration: line-through; color: #777777; } .tx_myquizpoll_pi1-label { font-size: 11pt; font-weight: normal; color: #757575; font-family: helvetica,arial,sans-serif; } .tx_myquizpoll_pi1-field { font-size: 11pt; border: 1px solid #B5B5B5; background: #DBE2FF; } .tx_myquizpoll_pi1-field:focus { font-size: 11pt; border: 1px solid #757575; background: #DBE2FF; } .tx_myquizpoll_pi1-submit { font-size: 11pt; background: #eeeea0; border: 1px solid #757575; } .tx_myquizpoll_pi1-reset { font-size: 11pt; background: #cd9f9f; border: 1px solid #757575; } .tx_myquizpoll_pi1-table { } .tx_myquizpoll_pi1-tr { } .tx_myquizpoll_pi1-tr-act { background: #ffffff; } .tx_myquizpoll_pi1-tr-even { background: #ddd; } .tx_myquizpoll_pi1-tr-odd { background: #aaa; } .tx_myquizpoll_pi1-caption { border:thin dotted black; background: #888; font-size: 12pt; font-weight: bold; padding: 5px; } .tx_myquizpoll_pi1-th { background: #eee; padding: 5px; } .tx_myquizpoll_pi1-td { padding: 5px; } .tx_myquizpoll_pi1-left { float: left; } .tx_myquizpoll_pi1-right { float: right; } )
And if you want that it is only one time useable:
plugin.tx_myquizpoll_pi1.useCookiesInDays = 10
Questions page:
Empty or reference to TEMPLATE_CAPTCHA_NOT_OK.
Reference to TEMPLATE_QUIZ_TIME_LIMIT. REF_QUIZ_LIMIT will be empty if "quizTimeMinutes = 0".
Reference to TEMPLATE_PAGE_TIME_LIMIT. REF_PAGE_LIMIT will be empty if "pageTimeSeconds = 0".
Multiple reference to TEMPLATE_QUESTION.
Reference to TEMPLATE_QUIZ_USER_TO_SUBMIT...
Dont delete the marker HIDDENFIELDS !!!!!!!
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 isPoll = 0 !!!
Result page:
Empty or reference to TEMPLATE_CHEATING.
Reference to TEMPLATE_QUIZ_TIME_LIMIT. REF_QUIZ_LIMIT will be empty if "quizTimeMinutes = 0".
Reference to TEMPLATE_POLL_SUBMITED (poll) or to TEMPLATE_QUIZ_USER_SUBMITED (quiz).
Multiple reference to TEMPLATE_QRESULT (empty if is poll or "dontShowCorrectAnswers=1").
Reference to TEMPLATE_RESULT_POINTS or TEMPLATE_RESULT_POINTS_TOTAL (if is quiz and "dontShowPoints=0", else empty)
Reference to TEMPLATE_NEXT (if "showAnswersSeparate=1" and is quiz, else empty)
Optional: ###REF_HIGHSCORE_URL### = 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 isPoll = 0 !!!
Optional: ###REF_POLLRESULT###.
Last/final page:
Reference to TEMPLATE_NO_MORE. REF_NO_MORE will be empty if pageQuestions = 0 !!!
Reference to TEMPLATE_QUIZ_ANALYSIS_x. x depends on "showAnalysis". REF_QUIZ_ANALYSIS will be empty if showAnalysis = 0 !!!
Reference to TEMPLATE_HIGHSCORE. REF_HIGHSCORE will be empty if showHighscore = 0 !!!
Reference to TEMPLATE_HIGHSCORE_URL. REF_HIGHSCORE_URL will be empty if dontShowHighscoreLink = 1 !!!
###VAR_QUESTION_IMAGE### |
###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS###
###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS### (###TOTAL_POINTS###: ###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###)
###SO_FAR_REACHED1### ###VAR_OVERALL_PERCENT###% (###VAR_TOTAL_POINTS### / ###VAR_OMAX_POINTS###) ###SO_FAR_REACHED2###
###RESULT_FOR###:
###NAME###: ###REAL_NAME###
###EMAIL###: ###REAL_EMAIL###
###HOMEPAGE###: ###REAL_HOMEPAGE###
###NO_SUBMIT###
###DOUBLE_ENTRY###
###NOT_LOGGEDIN###
###CHEATING###
Du hast noch ###VAR_MIN### Zeit, um das Quiz zu beenden. Danach wird es beendet.###NO_MORE###
You can use this Templates if you set "showAnalysis = 49.9,100". You can choose other percent values (than you have to rename the templates). If you want to make a redirect to another page write "showAnalysis = 0:1,33.34:2,66.67:3,100:4". 1,2,3 and 4 are UIDs of target pages.###REACHED1### ###VAR_PERCENT###% (###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###) ###REACHED2###
Damit hast du dich leider nicht für das Folge-Quiz qualifiziert. Dumm gelaufen...
###REACHED1### ###VAR_PERCENT###% (###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###) ###REACHED2###
Hey, das ist ja ein super Ergebnis! Hier gehts weiter...
You can use this template if you set "finishedMinPercent = 60" (60 is a percent value). If you want to make a redirect to another page set "finishedMinPercent = 60:1". 1 is the UID of the target page!###SO_FAR_REACHED1### ###VAR_PERCENT###% (###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###) ###SO_FAR_REACHED2###
###REACHED1### ###VAR_OVERALL_PERCENT###% (###VAR_TOTAL_POINTS### / ###VAR_OMAX_POINTS###) ###REACHED2###
Das reicht. Wie wärs nun hiermit: ...
###QUIZ_END###
Highscore-list. You can use this markers too: VAR_PERCENT, VAR_MAX, VAR_O_MAX###NUMBER### | ###POINTS### | ###PERCENT### | ###TIME### | ###NAME### | ###DATE### |
---|---|---|---|---|---|
###VAR_COUNT### | ###VAR_POINTS### | ###VAR_O_PERCENT### | ###VAR_TIME### | ###REF_HIGHSCORE_QUIZ_TAKER### | ###VAR_DATE### |
###HIGHSCORE_URL###