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

    I looked over the documentation and not sure if I overlooked this option, but is there a way to sort the results? In other words, the highest result (the one with the most votes) at the top and the lowest result (the one with the least votes) at the bottom?

    Thanks again for a great script!
      Precision Web Development ... SmashStack.com
      • 2734
      • 165 Posts
      Hey flinx

      Currently this isn’t supported. But it’s a feature that could easily be added... i’ll do that and post here when it’s done.

      Cheers -- banal
        • 2734
        • 165 Posts
        New version (0.3.3) with sorting option is now online.
        http://modxcms.com/EasyPoll-1873.html
          • 21946
          • 283 Posts
          Hello Banal
          i paste here my previous post wink




          View Profile Email Personal Message (Online)


          Re: Support/Comments for EasyPoll
          « Reply #29 on: Oct 08, 2008, 08:11 AM »
          Reply with quoteQuote Modify messageModify Remove messageRemove
          Hi,thanks for this great module !
          I have a little question : when we click on "show results" ; there is no way to come back to the poll questions in order to vote?

          Is there a way for me to add this feature?

          thanks Smiley

          Oh, another question : it doesn’t work anymore once i activate url-rewriting with ajax activated too. Do youknow why?
            [url=http://www.savepoint.fr/index.php?id=38] -petits tuyaux pour les d
            • 33982 ☆ A M B ☆
            • 476 Posts
            Currently this isn’t supported. But it’s a feature that could easily be added... i’ll do that and post here when it’s done.
            Wow...thanks for putting up so quickly (http://modxcms.com/forums/index.php/topic,22981.msg181716.html#msg181716)...I really appreciate that Banal...thanks a million!
              Precision Web Development ... SmashStack.com
              • 25483
              • 741 Posts
              Can I see a demo somewhere? I would like to see how ajax is used.
                with regards,

                Ronald Lokers
                'Front-end developer' @ h2o Media

                • 33982 ☆ A M B ☆
                • 476 Posts
                Sorry, my site is still in development and is offline (mainly to hide the content from the search engines). When it comes online, I’ll post the link up.
                  Precision Web Development ... SmashStack.com
                  • 27442
                  • 103 Posts
                  Thanks for this snippet/module cobination. I can see that I’ll be using it quite a bit in the near future. My first questions are about how to use the single vote concept effectively. First, I’m trying to fully understand the interaction between the 2 parameters: &onevote and &useip . My preliminary testing seems to indicate that there isn’t much value in having both of these parameters. Unless I’m missing something, using the 4 different possible combinations of these doesn’t really present 4 different possible results to the user and most users have dynamic IP addresses that will change at some point. My polls will only be available to registered web users, so I would really like to allow only 1 vote based on web user name, no matter what IP or computer they’re using. Is there any way to achieve that? If we need to use a cookie to keep track of wether or not a vote has been cast, what ’units of measure’ are used for the cookie expiration parameter &ovtime? I’d like the cookie to last a really long time (like multiple years). So if I put in a big number, is it number of days, number of weeks, etc?
                    • 2734
                    • 165 Posts
                    Hi all.

                    Looks like i got to answer some questions here:
                    @nyl auster: This shouldn’t be too difficult to implement. I just have very limited time at the Moment. I’ll look at it as soon as i have some spare time.

                    @MediaGuy: You can have a look at the voting using ajax here: http://www.ubsarena.ch/ (right column)

                    @sjh_vt: The &onevote parameter solely determines if a user should be able to vote just once or multiple times. If you set this to true, cookies will be used to allow the user from multiple voting. When setting the &useip parameter to true, EasyPoll additionally logs and utilizes the user ip. You could implement custom locking behavior by customizing the lockUser and getVotedStatus method inside the EasyPoll Class (easypoll.class.php). Subclassing and overriding would be even better...
                    The cookie expiration time is set in seconds.
                      • 14951
                      • 151 Posts
                      Hello there,

                      I’m running into an issue with installing the module for EasyPoll v0.3.3. Upon running the module, I receive a parse error
                      Parse error: syntax error, unexpected '{' in /home/jacknut/public_html/modx/manager/processors/execute_module.processor.php(114) : eval()'d code on line 76
                      . I have searched the forums, and it has been suggested to anyone with a similar issue that their PHP version is out of date. I checked on mine and according to my host my situation is as follows:
                      PHP Version: 5.2.5
                      MySQL Version:5.0.51a-community-log
                      Modx Version: 0.9.6.2

                      Does anyone have any suggestions for me to begin troubleshooting this?

                      Thanks,
                      Jared