Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Polls: You have entered more than the maximum allowed votes
Avatar
veritasnoctis
Member
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2012 - 2:31 am

I've run into a problem with the polls plugin. I created my first poll. It has three answers to choose from. I set the maximum allowed answers to one. And when anyone tries to vote, they get a pop up that says "You have entered more than the maximum allowed votes."

So I tried changing the maximum number of allowed votes. Turns out I need to set the maximum number of allowed votes to one more than the actual number of votes I want to allow. If I want to allow only one vote, I have to set the max to two. If I want to allow two, I have to set the max to three. And so on.

I don't know whether this is a bug or some conflict. I'm able to get the poll working with the above kluge, but there's still a problem. If the max allowed number of votes is set to one, then only one answer can be selected at a time. Clicking on a different answers causes the selected-answer indicator (colored dot) to move. But if the max allowed is set to two or more, then any number of answers can be selected simultaneously, leading to potential confusion among voters; they don't know that only one vote is allowed unless I tell them.

Hopefully this will be easy to diagnose and fix. Has anyone else encountered this problem?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 17, 2012 - 5:05 am

I am unable to replicate this so far. Are you sure you are using the latest version? No updates waiting?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2012 - 8:08 am

And please tell us what you are using for your polls options, ie vote tracking method....

Avatar
veritasnoctis
Member
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2012 - 9:29 am

Settings:

  • Restrict poll creation to new topics
  • Answer and results sorting: answer creation order, ascending
  • Tracking options: ID (although I had tried IP and Cookie first with the same results)
  • Other settings: default.

Plugin version 1.1; I don't see any update waiting.

The poll is in a topic in a subforum.

 

By the way, this is an unrelated issue, but the options menu in the sidebar of the Dashboard and the Admin Links on the frontend of the forum don't match the menu on the forums admin page. Plugins like Polls and Private Messaging get their own entries on the admin page, but they aren't added to these other places.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 17, 2012 - 9:57 am

Steve will need to respond to the Polls part.
As to the admin menu - WP makes it extremely hard to add items on the fly to the admin menu - in fact I would say it is not possible. By the time - at page load - that the Sp plugins are 'discovered' the admin menu is already cooked. The good news is that the Wp team recognise that the way the admin menu currently works is pretty bad and do aim at some point to rewrite it and we hope that will be soon.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2012 - 11:08 am

So if tracking votes by ID, I assume you are not allowing guests to vote since they won't have an ID and would not get restrictions.

I would ask for a link to example poll to see in action, but guest voting likely not allowed.

I could not recreate this but did not try in sub forum but that should not matter. Will try to be sure this weekend. On Aug 17, 2012 7:57 AM, "Simple:Press Support" wrote:

> > >

Avatar
veritasnoctis
Member
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2012 - 11:27 am

Mr Papa said
So if tracking votes by ID, I assume you are not allowing guests to vote since they won't have an ID and would not get restrictions.

I would ask for a link to example poll to see in action, but guest voting likely not allowed.

I created a test poll in a forum that doesn't require registration and login to post and I changed the permissions in that forum to allow guests to vote in a poll. I set the max allowed answers per vote to 1. Will you be able to test the poll if tracking is still by ID? Or do you need me to change that option?

http://prometheus-unbound.org/.....poll-test/

I just tested the test poll myself as both a non-admin user and a guest. I get the same result every time: You have entered more than the max allowed votes.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2012 - 11:21 pm

This is likely because you are caching the forum page...

<!-- This Quick Cache file was built for ( prometheus-unbound.org/forums/forums-feedback/poll-test/ ) in 3.12801 seconds, on Aug 18th, 2012 at 12:19 am EDT. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Aug 18th, 2012 at 1:19 am EDT -->

you cannot cache the forum page since all the content appears on a single wp page... wp caching plugins get confused and screw up content, css and js because each page load is dynamic...

you will need to tell that caching plugin to ignore the wp page the forum is on...

Avatar
veritasnoctis
Member
Free Members
sp_UserOfflineSmall Offline
Aug 17, 2012 - 11:55 pm

Okay, I think I've got caching turned off for that page, but the problem persists.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 18, 2012 - 12:27 am

Its the bad behaviour plugin you are running... for some reason, it is adding its own form element to the poll submission form...

This is making it look like there is an extra answer being provided to the polls voting processing... hence the error...

why in the hell, bad behaviour is adding elements to submitted forms is beyond me...   certainly not cool...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625