We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3186 ☆ A M B ☆
    • 279 Posts
    Hi all,

    Did anyone have already experiance with creating a poll in Revolution?

    If not; does anyone has tips and ideas about a component like this; I would like to create one if not already exist (i couldn’t found it)

    Regards, Bert
      MODX Ambassador (NL) & Professional MODX developer
      Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
      MODX e-commerce solution SimpleCart
      • 26016
      • 561 Posts
      I looked for this a long time ago, and I didn’t find any, either. But here’s one thought... I did run across a variety of non-MODx standalone polling scripts, some of which can be pulled into a PHP site using includes. So if I were looking for that right now, that’s what I would try. Then you could do your includes via a snippet or module (or maybe a programmer might have a different or better suggestion).
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 3186 ☆ A M B ☆
        • 279 Posts
        I am a programmer and I started with an basic implementation of the poll functionality. What I thought it will be usefull is;

        You can create categories and put questions inside a single category. This is for a multiple poll support on the website. You can create multiple polls per category and per question you could set a publish and unpublish date (for some automate publishments). For each question you can add answers, as many as you want. Each answer has a vote-counting and you must be able to sort the answers.

        Behind the code is a log of all votes, so visitors kan vote just for once, per poll.

        In the future I will make it possible to choose the times-to-vote per question.. and even more if good suggestions are posted

        For the front-end, snippets I am planning to make where [[!PollsLatest? &category=`1`]], [[!Polls? &category=`1`]] and [[!PollsResults? &id=`1`]]

        Some explanation:

        Polls:
        This one generates a list with polls in that category and by clicking on a poll you can vote (if you not already have done). When category not specified, all polls are in.

        PollLatest:
        By example usage for the homepage. You can show the latest poll in a certain category. When no category specified, all polls are in.

        PollsResults:
        This one shows the results of the given question id.

        If you have any tips, please let me know!
          MODX Ambassador (NL) & Professional MODX developer
          Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
          MODX e-commerce solution SimpleCart
          • 3186 ☆ A M B ☆
          • 279 Posts
            MODX Ambassador (NL) & Professional MODX developer
            Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
            MODX e-commerce solution SimpleCart
            • 11283
            • 11 Posts
            Hello,

            at first thanks for your great work. I need a pool tool for my website too and so I am revising your tool.

            New functions:

            Create a poll -> this poll can have one or more questions

            -> every question can have one or more answers
            -> every question has a specified answer type (e.g. radiobutton, textfield, checkbox and textarea)

            Every poll can have a category. -> In the front end you can set the snippets like this

            [[Poll &id=`3` &latest=`true`]] -> get the Poll with id 3 or the latest poll
            [[PollList &start=`0` &limit=`6`]] -> Lists all Polls from the id=`0` till 6 elements.

            I will upload my new functions in the next few days...

            Best regards,

            Greenvisions


              • 3186 ☆ A M B ☆
              • 279 Posts
              Quote from: greenvisions at Dec 28, 2010, 03:14 PM

              Hello,

              at first thanks for your great work. I need a pool tool for my website too and so I am revising your tool.

              New functions:

              Create a poll -> this poll can have one or more questions

              -> every question can have one or more answers
              -> every question has a specified answer type (e.g. radiobutton, textfield, checkbox and textarea)

              Every poll can have a category. -> In the front end you can set the snippets like this

              [[Poll &id=`3` &latest=`true`]] -> get the Poll with id 3 or the latest poll
              [[PollList &start=`0` &limit=`6`]] -> Lists all Polls from the id=`0` till 6 elements.

              I will upload my new functions in the next few days...

              Best regards,

              Greenvision

              Sounds great!
              If you want to integrate your snippets with the Polls component; please start your snippets with ’Polls’. This is to know for sure that snippets belongs to the Polls component... and do you using Github?
                MODX Ambassador (NL) & Professional MODX developer
                Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
                MODX e-commerce solution SimpleCart
                • 40045
                • 534 Posts
                First of all, thanks for your work, I’ll try it as soon as I find time =)...a nice polls module under Evolution was easyPoll found at http://bummzack.ch/easypoll/ or in the extras section. Maybe there was some functionality built in which isn’t yet built in the new module? Something like an archive-function for old polls to just display their results? Or templating the whole look of the poll (possibly already coded??)?

                keep up the good work!
                  • 3186 ☆ A M B ☆
                  • 279 Posts
                  I don’t know the evolution version. I create a poll component for the needs I have. In the future I hope a lot of new features will be added.

                  Templating the poll is possible, only I found a little bug in calling the templates, this one is fixed but not yet released.
                    MODX Ambassador (NL) & Professional MODX developer
                    Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
                    MODX e-commerce solution SimpleCart
                    • 11283
                    • 11 Posts
                    Ok I am ready to finish the project for tomorrow. Just need an answer for this question: http://modxcms.com/forums/index.php/topic,59119.msg336663.html#msg336663

                    Edit: The answer of this question is solved.

                    In the attachment are some previews, would be happy to publish it 2010 ;-).

                    (The first version of my poll is german, maybe english too laugh)

                    Today I want to finish it with a result snippet integrating some jquery Functions (Piecharts ...)
                    @bertoost: I have changed few things in the database and in the code so it isn’t compatible. I will upload my poll as a .zip file and you can test it.


                    lg, greenvisions.
                      • 3186 ☆ A M B ☆
                      • 279 Posts
                      This isn’t yet possible with the current version of my Polls component. Maybe in the future
                        MODX Ambassador (NL) & Professional MODX developer
                        Follow me on Twitter | Visit my page on Facebook | View my code on Github | View my script posts
                        MODX e-commerce solution SimpleCart