• I’m having an issue where one user up-votes a feature and then all other users find that the feature has no voting buttons and no one else can vote for that feature.

    I have one group established. I have implemented the PHP fix mentioned by Saurabh Shukla in [Resolved] Bug in saving total and max votes otherwise I was not able to set up groups with anything more than 1 max vote and 1 total vote.

    The group has (for testing purposes) 1000 votes in “Maximum votes that user can vote in each feature request in this group.” and 1000 votes in “Total votes that user can vote in this group in certain time that set in plugin settings”

    I have also reset the votes a few times to see if that helps. Can anyone tell me what I’m doing wrong? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I had this bug too, the problem is the plugin assigns user id 0 to guests, then when it checks to see if a user has already voted it looks for user id OR IP. So it checks the db for a guest w/ id 0 and finds all the other votes from guests who are also assigned user id 0.

    I fixed by editing the file feature-request\includes\class-avfr-db.php

    Search:
    WHERE userid="%s" OR ip ="%s" OR email="%s"

    Replace (3 replacements):
    WHERE (userid="%s" AND ip ="%s") OR email="%s"

    Search:
    ( ip ="%s" OR userid="%s" )

    Replace (1 replacement):
    ( ip="%s" AND userid="%s" )

    Thanks @maustin89 that worked great for me

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘All users sharing vote totals’ is closed to new replies.