QUIZ EXAMPLE TEMPLATE

This is a cool example template for a poll. You will need the resources "PlotKit - Javascript Chart Plotting" for this template.
You will find it here: http://www.liquidx.net/plotkit/
Download the latest version and copy the files to your fileadmin-folder.
You need another resource too: MochiKit. Take the current version from here: http://www.mochikit.com/download.html
Note: the excanvas.js from PlotKit is to old. Take the newest one from here: http://excanvas.sourceforge.net/

Copy all files to the fileadmin-folder and include them like this:
plugin.tx_myquizpoll_pi1 {
  isPoll = 1
  showPollResultLink = 1
  useCookiesInDays = 28
  templateFile = EXT:myquizpoll/examples/template_poll.html
#  templateFile = fileadmin/template/files/this_poll_template.html
}
page.includeJS {
  mochikit = fileadmin/template/MochiKit/MochiKit.js
  plotkit = fileadmin/template/PlotKit/PlotKit_Packed.js
  excanvas = fileadmin/template/JavaScript/excanvas.js
}

Set pageQuestions=1 and use categories, if you want to show more questions on following pages!

Templates for whole sites

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_QUIZ_USER_TO_SUBMIT...
6. Don't delete the marker HIDDENFIELDS !!!!!!!
7. Reference to TEMPLATE_POLLRESULT_URL.

###REF_ERRORS### ###REF_QUIZ_LIMIT### ###REF_PAGE_LIMIT###
###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).
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_RES_ERRORS### ###REF_INTRODUCTION### ###REF_QRESULT### ###REF_QPOINTS### ###REF_NEXT### ###REF_POLLRESULT###

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

###NO_SUBMIT###

###DOUBLE_ENTRY###

###NOT_LOGGEDIN###

###CHEATING###

###POLLRESULT_URL###

###THANK_YOU###

###VAR_QUESTION_TITLE###
###VAR_QUESTION_NAME###

  
Insgesamt haben bisher ###VAR_VOTES### Leute ihre Stimme abgegeben.

(((Note: in version 0.9.1 is the file "iecanvas.htc" missing. You will find it here: http://media.liquidx.net/js/plotkit/iecanvas.htc)))

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

###VAR_TITLE###