Table of contents
    1. 1. How to Install

    This page is a test for the MultiPoll template.  The template is a work-in-progress but is believed (mostly) functional.

    Todo list:

    1. formatting of results page
    2. language support needs updating
    3. lots of code refactoring and cleanup (some parts are quite messy now)

    Calling code:

    MultiPoll{
        questions: [
            { q: "Are you presently using SimplePoll?",
              a:[ "Yes", "No", "Considering it" ] },
            { q: "Do you have an interest in a version that can handle multiple questions?",
              a:[ "Yes", "No", "Maybe so" ] },
            { q: "How does this look?",
              a:[ "Perfect, just what I needed!", "Needs work, but on the right track", "What are you smoking?" ] }
        ]
    }

    Current Poll Results (total of 23 votes counted)
    1) Are you presently using SimplePoll?
    22 votes counted
    YesNoConsidering it
    (6 votes)
    jan7
    joel.campusano
    carles.coll
    neilw
    giulio
    tisso
    (11 votes)
    meesterfox
    cgarcia
    uwe.guenzel
    lktest
    beezoboy
    Songn
    gouwzee
    patarakin
    vnnw
    crb
    varosi
    (5 votes)
    SeGo
    Howleyda
    buzz_burrowes
    wcrtesch
    eneusta1
    2) Do you have an interest in a version that can handle multiple questions?
    21 votes counted
    YesNoMaybe so
    (17 votes)
    joel.campusano
    carles.coll
    cgarcia
    SeGo
    uwe.guenzel
    lktest
    neilw
    beezoboy
    giulio
    Songn
    Howleyda
    buzz_burrowes
    wcrtesch
    gouwzee
    varosi
    eneusta1
    tisso
    (2 votes)
    jan7
    vnnw
    (2 votes)
    patarakin
    crb
    3) How does this look?
    22 votes counted
    Perfect, just what I needed!Needs work, but on the right trackWhat are you smoking?
    (14 votes)
    carles.coll
    SeGo
    nak
    beezoboy
    Songn
    Howleyda
    buzz_burrowes
    wcrtesch
    gouwzee
    patarakin
    crb
    varosi
    eneusta1
    tisso
    (7 votes)
    jan7
    joel.campusano
    uwe.guenzel
    lktest
    neilw
    giulio
    vnnw
    (1 votes)
    cgarcia
    view results  

    How to Install

    Please note that the code is presently a mess (which is why it's not published to the App Catalog yet).

    These instructions will help you install the template'MultiPoll' on your wiki quickly and correctly.

    Perform the following steps:

    1. Copy the template source code:
      1. If the code in the "HTML Source" area below is not already visible and selected, click the "View" button to display and select it.
      2. Copy it to your clipboard (CTRL-C).
    2. Create a new template on your wiki:
      1. Select the Tools->Templates menu item on your wiki
      2. Click "New Page" button. This will open the editor on a new page with the title "Template:Page Title".
      3. Replace "Page Title" with the name of the template.
    3. Paste in the source code:
      1. In the editor, click the "View->Source" menu item to view the HTML source of the page.
      2. Select all text (CTRL-A).
      3. Paste in the template source code from the clipboard (CTRL-V).
    4. Click "Save" button.

    HTML Source for Template:MultiPoll

    Tag page
    Viewing 12 of 12 comments: view all
    Looks good, Neil. Where is the template code? edited 16:31, 22 Feb 2010
    Posted 16:31, 22 Feb 2010
    @bohappa
    Installation instructions now provided.
    Posted 18:38, 22 Feb 2010
    I am unable to do it, but another neat use for this multiple question format would be self grading test. The user fills out all of the questions, and then on the backend you could calculate percentage right wrong. Maybe one other field would be required; question, answers list, and then a "key" with the right answer.

    I can attest that this works in FF 3.6 and IE7 if that helps.
    Posted 11:33, 16 Mar 2010
    Wow. Works like a charm. Very impressive. Notes: Originally put it on a page that had examples of TSTable but the MultiPoll didn't allow me to submit so I put it on its own page and it worked as designed. Very nice set of features: revote, view results. Well done. I may not have installed LimeSurvey if I had had this a month ago.
    Posted 10:34, 20 Mar 2010
    Stopped working with the 10.0.0 Release. I tried to modify it, but was only semi successful. At this point I think the problem is that forms can't be hosted on user pages?!? So... none of the tests seem to work. Not sure what to try next.
    Posted 14:30, 29 Aug 2010
    @buzz_burrowes what appears to be the problem? can you isolate it and file a bug?
    Posted 15:24, 29 Aug 2010
    @SteveB ... There is already a thread going in the forums related to the dekiscript parser threating "&nbsp;" differently. That is the problem I found and fixed in the template here. BUT... additionally... I am guessing there is an issue with "hosting" forms on user pages now. I don't have time to try to build a repro case, but all of the demos of this template are done on a couple of people's user pages, and none of those demos work anymore. You just get a blank page. If you edit this template and comment out both the "<form id=(@form)>" and "</form>" lines, the poll will render... you just won't be able to submit. I even tried removing the reference to "@form" by supplying a hard coded id, but the problem persists.
    Posted 15:50, 29 Aug 2010
    @buzz_burrowes @steveb
    Fixed.

    Buzz, you made successful changes to the template but don't have supercontributor status so when you saved it it lost the ability to do UNSAFECONTENT. I re-saved it and now it appears to work OK. Please confirm. (Looking forward to the fix for bug 7670. :) )
    Posted 16:42, 29 Aug 2010
    @neilw

    Yup. Looks good. Thanks!

    - Buzz
    Posted 18:38, 29 Aug 2010
    I added hungarian translation to my own version, should I submit it somewhere?
    Posted 01:03, 26 Oct 2010
    Getting an exception on the page when i insert MultiPoll. I am on Mindtouch Core 10.0.4

    reference to undefined name 'dekiapi' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown. (click for details)
    Callstack:
    at The_Campfire/Regex_-_2//7//2011
    at Template:MultiPoll

    MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException: reference to undefined name 'dekiapi' Exception of type 'MindTouch.Deki.Script.Runtime.DekiScriptUndefinedNameException' was thrown.
    at MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluation.Visit (MindTouch.Deki.Script.Expr.DekiScriptVar expr, DekiScriptExpressionEvaluationState state) [0x00000]
    at MindTouch.Deki.Script.Expr.DekiScriptVar.VisitWith[DekiScriptExpressionEvaluationState,Range] (IDekiScriptExpressionVisitor`2 visitor, DekiScriptExpressionEvaluationState state) [0x00000]
    at (wrapper static-rgctx-invoke) MindTouch.Deki.Script.Expr.DekiScriptVar:static_rgctx_invoke_DekiScriptOutputBuffer/Range__this___IDekiScriptExpressionVisitor`2<DekiScriptExpressionEvaluationState, DekiScriptOutputBuffer/Range>_DekiScriptExpressionEvaluationState (MindTouch.Deki.Script.Expr.IDekiScriptExpressionVisitor`2<MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluationState, MindTouch.Deki.Script.Runtime.DekiScriptOutputBuffer/Range>,MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluationState)
    at MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluation.Visit (MindTouch.Deki.Script.Expr.DekiScriptCall expr, DekiScriptExpressionEvaluationState state) [0x00000]
    at MindTouch.Deki.Script.Expr.DekiScriptCall.VisitWith[DekiScriptExpressionEvaluationState,Range] (IDekiScriptExpressionVisitor`2 visitor, DekiScriptExpressionEvaluationState state) [0x00000]
    at (wrapper static-rgctx-invoke) MindTouch.Deki.Script.Expr.DekiScriptCall:static_rgctx_invoke_DekiScriptOutputBuffer/Range__this___IDekiScriptExpressionVisitor`2<DekiScriptExpressionEvaluationState, DekiScriptOutputBuffer/Range>_DekiScriptExpressionEvaluationState (MindTouch.Deki.Script.Expr.IDekiScriptExpressionVisitor`2<MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluationState, MindTouch.Deki.Script.Runtime.DekiScriptOutputBuffer/Range>,MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluationState)
    at MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluation.Visit (MindTouch.Deki.Script.Expr.DekiScriptSequence expr, DekiScriptExpressionEvaluationState state) [0x00000]
    at MindTouch.Deki.Script.Expr.DekiScriptSequence.VisitWith[DekiScriptExpressionEvaluationState,Range] (IDekiScriptExpressionVisitor`2 visitor, DekiScriptExpressionEvaluationState state) [0x00000]
    at (wrapper static-rgctx-invoke) MindTouch.Deki.Script.Expr.DekiScriptSequence:static_rgctx_invoke_DekiScriptOutputBuffer/Range__this___IDekiScriptExpressionVisitor`2<DekiScriptExpressionEvaluationState, DekiScriptOutputBuffer/Range>_DekiScriptExpressionEvaluationState (MindTouch.Deki.Script.Expr.IDekiScriptExpressionVisitor`2<MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluationState, MindTouch.Deki.Script.Runtime.DekiScriptOutputBuffer/Range>,MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluationState)
    at MindTouch.Deki.Script.Compiler.DekiScriptExpressionEvaluation.Visit (MindTouch.Deki.Script.Expr.DekiScriptReturnScope expr, DekiScriptExpressionEvaluationState state) [0x00000] edited 10:10, 8 Feb 2011
    Posted 10:09, 8 Feb 2011
    @dmeHUN
    The multi-language support in this script is a mess. If you want, post the code with your translation to your user page on the MCP, and point people there. When you do, I'll take a look at it.

    @thewilde
    The Dekiapi extension is not installed or not working.
    Posted 14:31, 3 Mar 2011
    Viewing 12 of 12 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by