Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 2 Years, 10 Months ago [General] poll votes are off
#1
Solved: 2 Years, 10 Months ago
the vote counts for this poll are messed up, even after running the recount & rebuild tools in the admin cp.

   

thread: http://shavenook.com/polls.php?action=sh...ts&pid=204
#2
Solved: 2 Years, 10 Months ago
You can edit the number of votes manually in order to fix them. http://shavenook.com/polls.php?action=editpoll&pid=204
Perhaps someone was editing the poll when a user (or multiple users) voted; causing the number of votes being overwritten with the old number from when the edit page was loaded.
#3
Solved: 2 Years, 10 Months ago
(07-05-2014, 08:25 PM)JordanMussi Wrote: You can edit the number of votes manually in order to fix them. http://shavenook.com/polls.php?action=editpoll&pid=204
Perhaps someone was editing the poll when a user (or multiple users) voted; causing the number of votes being overwritten with the old number from when the edit page was loaded.

the poll is so screwed up that I'm not sure what is valid data.

is there not a way to recount and rebuild polls in the mybb core? if not, there probably should be since polls are a core part of the forum software.
#4
Solved: 2 Years, 10 Months ago
A recount option is not feasible as users can manually edit the number of votes an option has in to poll. Recounting would lose all changes...
#5
Solved: 2 Years, 10 Months ago
(07-05-2014, 08:53 PM)JordanMussi Wrote: A recount option is not feasible as users can manually edit the number of votes an option has in to poll. Recounting would lose all changes...

I suppose that's a good point.

is there any way to find out which data is valid: either the # of votes or the users who voted for which option?

The poll I linked to is so screwed up..
#6
Solved: 2 Years, 10 Months ago
Can't you count the number of usernames listed next to each option and change the number of votes to the sum of the usernames?
#7
Solved: 2 Years, 10 Months ago
(07-06-2014, 09:37 AM)JordanMussi Wrote: Can't you count the number of usernames listed next to each option and change the number of votes to the sum of the usernames?

because even that seems off to me.

maybe I should restrict users from modifying polls and only allow admins/mods to do it.
#8
Solved: 2 Years, 10 Months ago
(07-05-2014, 08:38 PM)Shemo Wrote: the poll is so screwed up that I'm not sure what is valid data.

The list of users who have voted for an option is always* accurate, so you can use that to re-count votes from.

I threw together a quick plugin to recount the votes for a single poll, it seems to work and not be broken, but I've not tested it with multiple-choice votes yet. I'll test it more/tidy it up and submit it to the mods site some time in the near future, but if you want to try it out now, take a look here. It adds a button next to the edit poll option for moderators.

(07-06-2014, 11:09 PM)Shemo Wrote: maybe I should restrict users from modifying polls and only allow admins/mods to do it.

Only moderators are able to edit polls (Not even the person who started it can).


* There does exist a race condition in which one person can place two votes on single-choice under specific circumstances, but unless someone is using it intentionally it won't happen.
#9
Solved: 2 Years, 10 Months ago
(07-07-2014, 11:20 AM)Cameron:D Wrote:
(07-05-2014, 08:38 PM)Shemo Wrote: the poll is so screwed up that I'm not sure what is valid data.

The list of users who have voted for an option is always* accurate, so you can use that to re-count votes from.

I threw together a quick plugin to recount the votes for a single poll, it seems to work and not be broken, but I've not tested it with multiple-choice votes yet. I'll test it more/tidy it up and submit it to the mods site some time in the near future, but if you want to try it out now, take a look here. It adds a button next to the edit poll option for moderators.

(07-06-2014, 11:09 PM)Shemo Wrote: maybe I should restrict users from modifying polls and only allow admins/mods to do it.

Only moderators are able to edit polls (Not even the person who started it can).


* There does exist a race condition in which one person can place two votes on single-choice under specific circumstances, but unless someone is using it intentionally it won't happen.

the plugin would be neat and possibly useful in core.

that said, it does seem that the username vote count is probably pretty accurate, like you said.

is there any way to totally disable the ability for an admin/mod to modify the poll vote counts to prevent the poll from becoming messed up?


Forum Jump:


Users browsing this thread: 1 Guest(s)