5 days later

jordanjay29 @luceos

Hey! Is it possible to view all the discussions with a poll added to them in a go, with some keywords in the search bar may be?

    PalakS It's better to ask me cause I made this extension 😁 But I don't really understand your question

      Shahiem
      Oh ohk! So like if I want to look for discussions specific to the word Polls, I would simply look for the word 'Polls' in the search box, this will land me onto discussions on and around the word 'Polls'.

      Similarly, is there any way, through I which I could get to see all the discussions that have polls (the actual polls and not the word!) in them at once?

        PalakS we could make a dedicated "polls" category on the main page

        13 days later

        1.3

        • Beta 8 Compatibility
        • Added PollWasCreated and PollWasVoted events
        • Added Chinese translation

        Updating ⬆️

        1. Make sure you are running Flarum beta 8, this update will not work on any other version
        2. Run the follow commands (in this order) in your Flarum root directory:
          • composer update reflar/polls
          • php flarum migrate
          • php flarum cache:clear

        1.3.1

        • Include a vote's user with the vote data so that the "View Voters" modal will always work.
        • Removed a bunch of redundant data that would load on every page.

        Updating ⬆️

        1. Make sure you are running Flarum beta 8, this update will not work on any other version
        2. Run the follow commands (in this order) in your Flarum root directory:
          • composer update reflar/polls
          • php flarum migrate
          • php flarum cache:clear

        Hi, show error view voters

        Uncaught TypeError: n.id is not a function
        at ShowVotersModal.js:31
        at Array.map (<anonymous>)
        at e.a.getUsers (ShowVotersModal.js:26)
        at ShowVotersModal.js:61
        at Array.map (<anonymous>)
        at e.a.content (ShowVotersModal.js:58)
        at e.n.view (Modal.js:46)
        at e.render (Component.js:102)
        at e.n.view (ModalManager.js:18)
        at e.render (Component.js:102)


        Include a vote's user with the vote data so that the "View Voters" modal will always work ? @Kyrne

        You could explain it please I do not understand where to add the user.

          terabytesoftw tlalok can one of you provide a link to a poll on your forum where the error occurs so I can take a look?

          19 days later
          15 days later

          We are aware that Polls adds a minimum of 100ms to every page load. A version will come in the future where this will be fixed.

          This is in part because the queries Polls performs aren't optimized and/or cached.
          Below you can see the amount of events fired with Polls disabled and enabled.
          See how events related to the database are fired almost 3x compared to normal.
          data

          I myself have noticed the amount of time spent with database queries triple when enabling Polls as well.

          13 days later

          Hi guys,
          Installed 1.3.2 and seems to work fine, only the option the view voters does not work.
          The button is there, but clicking it doesn't do anything.
          Cannot find a setting for this? Can i change something mannually?

          Stefan i just found it is the same error as mentioned above on dec 18 last year. Any news on a fix?

            8 days later

            hey everyone,

            I have encountered the following 2 issues while testing this extension on Flarum 0.1.0-beta.8.1:

            1. While trying to update an already created pool:

            [2019-01-26 11:35:19] production.ERROR: InvalidArgumentException: Zend\Diactoros\ServerRequest::withParsedBody expects a null, array, or object argument; received string in /var/www/html/vendor/zendframework/zend-diactoros/src/ServerRequest.php:184
            Stack trace:
            #0 /var/www/html/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(26): Zend\Diactoros\ServerRequest->withParsedBody('1')
            #1 /var/www/html/vendor/zendframework/zend-stratigility/src/Next.php(52): Flarum\Http\Middleware\ParseJsonBody->process(Object(Zend\Diactoros\ServerRequest), Object(Zend\Stratigility\Next))
            #2 /var/www/html/vendor/flarum/core/src/Api/Middleware/HandleErrors.php(42): Zend\Stratigility\Next->handle(Object(Zend\Diactoros\ServerRequest))

            1. While opening the dialog with pool results as another user (i.e. not the pool creator) once voted:

            Uncaught TypeError: n.id is not a function
            at ShowVotersModal.js:31
            at Array.map (<anonymous>)
            at e.a.getUsers (ShowVotersModal.js:26)
            ...

            Thanks a lot for help / ideas, please let me know if further information is needed.

            It would be great to add a dating poll!

            4 months later

            There’s a virus in the extension.

             'ClamAV detected virus = [{HEX}php.exe.globals.411.UNOFFICIAL]':    /home/home/public_html/vendor/reflar/gamification/scripts/PreCommit.php

            'ClamAV detected virus = [{HEX}php.exe.globals.411.UNOFFICIAL]': /home/home/public_html/vendor/reflar/polls/scripts/PreCommit.php

              alx You might want to get a new antivirus as it's a false positive.

              The source code for that file is available here: https://github.com/ReFlar/polls/blob/master/scripts/PreCommit.php

              When you download and extension it pulls right from GitHub. Not only that but that file is only used by the ReFlar team to make sure we are conforming to coding standards, it is not run at all during normal operation.

              Edit: to reassure you I have released 1.3.3 which no longer contains the file