Note: you can use any field of tt_address - with the exception of image and description. This is only a demo-template for the address use in myquizpoll. It can be used only for an insert in tt_address (no update). You need the add-on-extension "myquizpoll_setadr" too from here: http://www.myquizandpoll.de/myquizpoll_addons.html You can use userData.askAtFinal = 1 instead of askAtQuestion... Use it with this TypoScript (replace 120 with the ID of the tt_address-folder, change tt_address_groups, e.g. 1,3): plugin.tx_myquizpoll_pi1 { templateFile = EXT:myquizpoll/examples/template_address.html userData.askAtQuestion = 2 userData.tt_address_pid = 120 userData.tt_address_groups = 1 }
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 (userData.askAtQuestion = 1 or userData.askAtStart = 1), to TEMPLATE_SUBMIT (userData.askAtQuestion = 0) 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 !!!
Also avaiable: ###FE_USER_UID###, ###QUIZ_NAME###
Result page:
1. Empty or reference to TEMPLATE_CHEATING.
2. Reference to TEMPLATE_POLL_SUBMITED (poll) or to TEMPLATE_QUIZ_USER_SUBMITED (quiz; if "userData.showAtAnswer = 1", 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_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###, ###RESET_COOKIE###
Also avaiable: ###FE_USER_UID###
Instead of VAR_ANSWER_POINTS you can use VAR_QUESTION_POINTS or VAR_NEXT_POINTS (test it). And you can use ###VAR_QUESTION_IMAGE###, ###VAR_QUESTION###, ###VAR_QUESTIONS###, ###VAR_QUESTION_NUMBER###, ###VAR_QUESTION_TYPE###, ###VAR_QUESTION_ANSWERS### and ###VAR_CATEGORY###.
In ###TEMPLATE_QUESTION_ANSWER### you can use this too: ###VAR_QA_CATEGORY###
###REF_QUESTION_IMAGE_BEGIN###You can use this markers too: ###REF_QR_ANSWER_ALL### or ###REF_QR_ANSWER_CORR### instead of
REF_QR_ANSWER_CORR_ANSW,-CORR_NOTANSW,-NOTCORR_NOTANSW,-NOTCORR_ANSW (this will be automatically used by REF_QR_ANSWER_ALL in original order) !!!
And you can use ###VAR_QUESTION###, ###VAR_QUESTIONS###, ###VAR_QUESTION_NUMBER### and ###VAR_CATEGORY###.
You can use this marker too in the following templates: ###VAR_QA_CATEGORY### (and ###VAR_QA_NR###)
Also avaiable: (###TOTAL_POINTS###: ###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###). And: ###VAR_QUESTIONS_ANSWERED###,###VAR_QUESTIONS_CORRECT###,###VAR_QUESTIONS_FALSE###
And: ###SO_FAR_REACHED1### ###VAR_OVERALL_PERCENT###% (###VAR_TOTAL_POINTS### / ###VAR_OMAX_POINTS###) ###SO_FAR_REACHED2###
###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS###
Also avaiable: VAR_MISSING_POINTS and VAR_TMISSING_POINTS. And: ###VAR_QUESTIONS_ANSWERED###,###VAR_QUESTIONS_CORRECT###,###VAR_QUESTIONS_FALSE###
And: ###SO_FAR_REACHED1### ###VAR_OVERALL_PERCENT###% (###VAR_TOTAL_POINTS### / ###VAR_OMAX_POINTS###) ###SO_FAR_REACHED2###
###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS### (###TOTAL_POINTS###: ###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###)
Vor-, Nachname: | ||||
###EMAIL###: | ||||
###HOMEPAGE###: | ||||
Strasse: | ||||
PLZ und Ort: | ||||
Telefon: | ||||
###SR_FREECAP_NOTICE### |
###SR_FREECAP_IMAGE### ###SR_FREECAP_ACCESSIBLE### |
###RESULT_FOR###:
###NAME###: ###REAL_NAME###,
###EMAIL###: ###REAL_EMAIL###
###NO_SUBMIT###
###DOUBLE_ENTRY###
###NOT_LOGGEDIN###
###CHEATING###
###CAPTCHA_NOT_OK###
###VAR_NO### ###SKIPPED###
No more questions. You can use here these markers too (out of ###QUIZ_ANSWERS###): ###RESTART_QUIZ###, ###CORRECT_ANSWERS###, ###YOUR_EVALUATION###, ###RESULT_POINTS###: ###VAR_RESULT_POINTS### / ###VAR_MAX_POINTS### (###TOTAL_POINTS###: ###VAR_TOTAL_POINTS### / ###VAR_TMAX_POINTS###)###NO_MORE###
###REF_QUESTION_IMAGE_BEGIN###"###CATEGORY###"-###ANSWERS###: ###VAR_COUNT### (###VAR_PERCENT###%).
###CONTENT###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: ...
You can use this too: ###RESTART_QUIZ###
###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###
###QUIZ_END###
Highscore-list. You can use this markers too in TEMPLATE_HIGHSCORE_ENTRY: ###VAR_PERCENT###, ###VAR_MAX###, ###VAR_O_MAX###, ###VAR_TIME###, ###VAR_FE_UID###, ###VAR_PAGE_NAME### (page with plugin) and ###VAR_FOLDER_NAME### (page of result records).
And if you use groupBy: ###VAR_NUM_QUIZ### (num. of solved quizes).
###NUMBER### | ###POINTS### | ###PERCENT### | ###NAME### | ###DATE### |
---|---|---|---|---|
###VAR_COUNT### | ###VAR_POINTS### | ###VAR_O_PERCENT### | ###REF_HIGHSCORE_QUIZ_TAKER### | ###VAR_DATE### |
And if you use groupBy: ###LINK_DETAIL### (link to a detailed highscore).
###VAR_NAME_AND_EMAIL### ###VAR_TO_HOMEPAGE######HIGHSCORE_URL###
###POLLRESULT_URL###
###THANK_YOU###
###QUESTION_NAME### ###VAR_QUESTION_NAME###
###USER_ANSWER### ###VAR_USER_ANSWER###
Also avaiable marker: VAR_ANSWER1 - 6, VAR_HITS1 - 6, VAR_PERCENT1 - 6, VAR_SELECTED, VAR_QUESTION_IMAGE, REF_QUESTION_IMAGE_BEGIN and REF_QUESTION_IMAGE_END.
And in TEMPLATE_POLLRESULT_ENTRY: VAR_COUNT and VAR_SELECTED
###ANSWER### | ###VOTES### |
---|---|
###VAR_ANSWER### | ###VAR_HITS### (###VAR_PERCENT###%) |
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 and showEvaluation = 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 and showEvaluation = 0 !
3. Reference to TEMPLATE_EMAIL_ALLANSWERS if "showAllCorrectAnswers = 1".