A Goon
God must have loved people who don't think -- he made so many of them.
- Nicholas Bodley
Tyler Adams is 14.614 years old.
Modified: August 09 2006.
Hits: 8161383/12039087
User: Anonymous Coward
Time: 0.25 seconds.

Read Message

A note about the 'you haven't voted yet' notice on the threadlist and how it works.

Author: Tridus ()
Date: 2000-03-30 00:00:00

Ok.... because every time it happens I get about ten different bug reports about it (which is a good thing), I figure I'll try to explain it once and for all.

The way the poll script works (and the survey wizard as well actually), is that it has two types of polls/surveys: Restricted, and Non-Restricted.

A non-restricted poll allows people without user accounts to vote. It makes no pretense of security and validity of the results at all, since you can erase the cookie (or change browsers) and vote again. In fact, the cookie is only there to make showing the results happen faster rather then as a security measure, since its not secure at all. (it also expires in 14 days, so it'd expire during a long survey).

A restricted poll uses the users database to track what you have voted on (but not for). So, it knows you have voted on poll #21, but not that you voted for Bob. As a result, the results are fairly reliable, since to my knowledge no one has found any ways to vote more then once on the same poll short of having two user accounts, which no one has (excpt for the Electoral Officer, who does not vote).

The threadlist vote tracker uses the user database to figure out if you have voted or not. So in a non-restricted poll, it doesn't know if you have or not, and assumes you haven't. Thats why it doesn't work properly all the time. Most polls here are restricted, but not all are (notable DebtAngel's poll yesterday, and the "your favorite Dm personality is..." because tha twas open to the war room).

Now, do we all understand how this works?

/me goes to create a poll faq section. :)

If there were no words, no way to speak... I would still hear you... - Martina McBride

A note about the 'you haven't voted yet' notice on the threadlist and how it works. - Tridus - 2000-03-30 00:00:00
-I had that problem before, but I don't now, so... :) - SM_007 - 2000-03-30 00:00:00