We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27572
    • 28 Posts
    Quote from: banal at Dec 25, 2008, 11:11 AM

    Hm. Strange. Try to set the StartDate to a date in the past (eg. 24-12-2008). Does that change anything?
    No(, this solution can`t solve my problem

    Now, I can`t see something what must be displayed by call of snippet (EasyPoll)..

    P.s I,m try to use EasyPoll on modx 0.9.6.2 and on modx 0.9.6.3
      • 2734
      • 165 Posts
      Can you post your Snippet call? And maybe a screenshot of the EasyPoll Module (Polls section)?
        • 27572
        • 28 Posts
        Quote from: banal at Dec 25, 2008, 03:19 PM

        Can you post your Snippet call? And maybe a screenshot of the EasyPoll Module (Polls section)?
        Hi!
        Today I,m partially solved my problem: Full reinstall modx and EasyPoll.
        Now I have the following:

        Polls working, but, when I create poll on Russian modx said:

        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « PHP Parse Error »

        PHP error debug
        Error: htmlentities() [function.htmlentities]: Invalid multibyte sequence in argument
        Error type/ Nr.: Warning - 2
        File: /*****/assets/snippets/EasyPoll/easypoll.class.php
        Line: 209
        Line 209 source: ’answer’ => htmlentities($row[’title’], ENT_COMPAT, ’UTF-8’),

        Parser timing
        MySQL: 0.0824 s (9 Requests)
        PHP: 0.2047 s
        Total: 0.2871 s
          • 2734
          • 165 Posts
          Hm. I just took some random russian words from the google translator and it seems to work fine.
          Here’s a screenshot:


          Which encoding did you choose under Tools > Configuration > Site?
          What’s the installed PHP Version on your Server?
            • 27572
            • 28 Posts
            Quote from: banal at Dec 26, 2008, 09:17 AM

            Hm. I just took some random russian words from the google translator and it seems to work fine.
            Here’s a screenshot:


            Which encoding did you choose under Tools > Configuration > Site?
            What’s the installed PHP Version on your Server?
            Encoding of my site is Windows-1251 (try UTF8 too)

            PHP version 5 & Mysql 5

            PS

            Maybe I have wrong text in lang.ru.php ? (I,m just replace some words in your file lang.en.php)
            Him content is:
            <?php
            /**
            * ------------------------------------------------------------------------------
            * English Language File for EasyPoll Snippet. Keep this File UTF-8 encoded
            * ------------------------------------------------------------------------------
            * @author banal
            * @version 0.3 <2008-02-20>
            */
            $_lang[’vote’] = ’Голосовать’;
            $_lang[’results’] = ’Показать результаты’;
            $_lang[’back’] = ’Назад к голосованию’;
            $_lang[’alreadyvoted’] = ’Вы можете голосовать только единожды’;
            $_lang[’totalvotes’] = ’Число голосов’;
            $_lang[’error’] = ’Произошла ошибка во время передачи данных.. Вы точно выбарли вариант для ответа?’;
            ?>

            PPS:
            I,m fully Solved this truble ))
            Just convert all texts and titles of my site to UTF-8, and now EasyPoll working!!

            Thank you, Banal !
              • 27572
              • 28 Posts
              New Question =)
              How I can place are two polls into table cells ?
              I,m try to this method from your site

              [!EasyPoll? &pollid=`1` &identifier=`MyPoll_1` &onevote=`1` &useip=`1`!]
              conent
              [!EasyPoll? &pollid=`2` &identifier=`MyPoll_2` &nojs=`1`!]

              But I can see only first poll, and second poll is invisible!

              SOLVED )
              Server time and my local time if different (+2hours)

              Now fully working
              Thx
                • 7563
                • 17 Posts
                Hi, thanks for this great piece of work.

                Is there a way for people to vote for multiple options at once, and in preference order? Say up to 10 out of 30 options, for instance. Like with check boxes instead of radio buttons?

                If EasyPoll can’t support this, is there any other snippet that could do the trick?

                Thanks
                  • 2734
                  • 165 Posts
                  @skynetmn: great, glad you could resolve that issue

                  @DJB: The functionality you mention isn’t supported by EasyPoll. I’m not aware of a snippet/module that provides this feature out of the box, but you could extend the existing Code to fit your needs. Shouldn’t be too complicated.
                    • 33962
                    • 13 Posts
                    Hi, thanks for this snippet!
                    Is it possible to run it with mootools 1.2?
                      • 2734
                      • 165 Posts
                      Quote from: raffy at Dec 29, 2008, 10:21 AM

                      Hi, thanks for this snippet!
                      Is it possible to run it with mootools 1.2?

                      Hi raffy.
                      I honestly don’t know, because i didn’t test wink
                      Did you encounter Problems with mootools 1.2? If mootools 1.2 works with the other lot of modx snippets, then EasyPoll should work as well...