WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
[resolved] Multiple Polls (8 posts)

  1. marweis
    Member
    Posted 9 months ago #

    I'd like to have a few different polls on different pages. The problem is, as soon as you take one, the rest show the results too. I've messed around with the cookie settings but I'm not sure how to fix this.. Is there a way to save the cookie so it is specific to the poll so users can take any or all of the polls they find on my site?

    http://wordpress.org/plugins/wp-polls/

  2. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    Due to the way the code works, you only can't have two of the same poll on the same page, but you can have two different polls on the same page.

    I am guessing in your case you are embedding 2 of the same polls on the page, if that is not the case. I tested and it works on my site http://lesterchan.net/wordpress_dev/2013/10/06/multiple-polls/

  3. marweis
    Member
    Posted 9 months ago #

    I have a multisite - 6 sites total, setup as http://www.mainsite.com/subsite. I installed the plugin and then activated it within each separate site (so not network activated). I then went into the settings area and created a poll for each of the separate sites. The polls have different titles, and only show within the site they were created in. The problem is if I take one of the polls than navigate to another page/subsite that contains a totally different poll, I see only the results when I never got to actually answer the poll on that page. I turned off logging completely so readers could participate in polls on any of the sites, but if they return to a page with a poll they have already taken, it lets them take it again. If you refresh your test page, you will see that users can retake the poll after they already answered too so you must have logging off as well.

  4. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    I disable Logging so that I can vote many times since it is a test site.

    I think for your case, it might be a bug on how the plugin handle cookies. Since you are using MS and as a subfolder rather than a subdomain, the cookies set by WP-Polls for subsite1 will conflict with subsite2 because there are on the same domain. How about you logged by IP instead of IP and cookie?

  5. marweis
    Member
    Posted 9 months ago #

    yea, doesn't seem to matter how it is logged :(

  6. Lester Chan
    Member
    Plugin Author

    Posted 9 months ago #

    That is weird, do you have the page to that problem? I want to check the ajax request

  7. xotihcan
    Member
    Posted 9 months ago #

    Hi Lester,
    I have the same problem!
    I tried the cookie & IP and IP only logging methods.

    When voting the first poll, you can't vote on any of the others, the Vote button doesn't do anything.

    This is the URL of the post: http://www.aperderpeso.com/quieres-perder-kilos-con-la-dieta-dukan-a-perder-peso-y-abc-dukan-te-ayudaran-a-lograrlo/

    EDIT: It's a problem with a custom function. HTMLPurifier breaks the javascript on the button.

  8. esmi
    Forum Moderator
    Posted 9 months ago #

    @xotihcan: As per the Forum Welcome, please post your own topic.

Reply

You must log in to post.

About this Plugin

About this Topic