QUIZ EXAMPLE TEMPLATE

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

Templates for whole sites

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 !!!

###REF_ERRORS### ###REF_QUIZ_LIMIT### ###REF_PAGE_LIMIT###
###REF_QUESTIONS### ###REF_SUBMIT_FIELDS### ###HIDDENFIELDS###
###REF_HIGHSCORE_URL###

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###.

###REF_RES_ERRORS### ###REF_QUIZ_LIMIT###
###REF_INTRODUCTION### ###REF_QRESULT### ###REF_QPOINTS### ###REF_NEXT###

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 !!!

###REF_NO_MORE### ###REF_QUIZ_ANALYSIS### ###REF_HIGHSCORE### ###REF_HIGHSCORE_URL###

Template-Snippets

###REF_QUESTION_IMAGE_BEGIN###
###VAR_QUESTION_TITLE###: ###VAR_QUESTION_NAME### ###P1######VAR_ANSWER_POINTS######P2###
###VAR_QUESTION_ANSWER###
###REF_QUESTION_IMAGE_END###

###REF_DELIMITER###
###VAR_QUESTION_IMAGE###  

You can use this marker too: ###REF_QR_ANSWER_CORR###
###VAR_QUESTION_TITLE###: ###VAR_QUESTION_NAME###
###REF_QR_ANSWER_CORR_ANSW### ###REF_QR_ANSWER_CORR_NOTANSW### ###REF_QR_ANSWER_NOTCORR_NOTANSW### ###REF_QR_ANSWER_NOTCORR_ANSW### ###REF_QR_EXPLANATION### ###REF_QR_POINTS###

###REF_DELIMITER###
###VAR_QUESTION_ANSWER### ###P1######VAR_ANSWER_POINTS######P2###
###VAR_QUESTION_ANSWER### ###P1###+###VAR_ANSWER_POINTS######P2###
###VAR_QUESTION_ANSWER### ###P1######NO_POINTS######P2###
###VAR_QUESTION_ANSWER### ###P1###-###VAR_ANSWER_POINTS######P2###
###VAR_QUESTION_ANSWER### ###P1######NO_POINTS######P2###
###RES_QUESTION_POINTS###: ###VAR_QUESTION_POINTS### / ###VAR_MAX_QUESTION_POINTS###
###EXPLANATION###: ###VAR_EXPLANATION###

###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###



###NAME###:      
###EMAIL###:  
###HOMEPAGE###:  

###SR_FREECAP_NOTICE###
###SR_FREECAP_CANT_READ###

    ###SR_FREECAP_IMAGE### ###SR_FREECAP_ACCESSIBLE###

###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.
Du hast noch ###VAR_SECS### Sekunden Zeit, um dieses Formular abzuschicken!
Sobald du 50% der maximal erreichbaren Punkte hast, gehts bei einem schwierigen Quiz weiter...

No more questions. You can use here these Markers too: ###RESTART_QUIZ###, ###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS### (###TOTAL_POINTS###: ###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###)

###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).

###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

###REF_HIGHSCORE_CAPTION###
###NUMBER### ###POINTS### ###PERCENT### ###TIME### ###NAME### ###DATE###
###VAR_COUNT### ###VAR_POINTS### ###VAR_O_PERCENT### ###VAR_TIME### ###REF_HIGHSCORE_QUIZ_TAKER### ###VAR_DATE###
###HIGHSCORE_CAPTION### ###VAR_HIGHSCORE_LIMIT### Allowed Markers here: ###VAR_NAME###, ###VAR_EMAIL###, ###VAR_HOMEPAGE###, ###VAR_TO_HOMEPAGE###, ###VAR_NAME_AND_EMAIL### ###VAR_NAME_AND_EMAIL### ###VAR_TO_HOMEPAGE###

###HIGHSCORE_URL###