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/
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!
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.
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.
###VAR_QUESTION_IMAGE### |
###NO_SUBMIT###
###DOUBLE_ENTRY###
###NOT_LOGGEDIN###
###CHEATING###
###POLLRESULT_URL###
###THANK_YOU###
(((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)))