Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Poll - Vote Only Once
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Poll - Vote Only Once

 Post Reply Post Reply Page  123>
Author
exile2003 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 April 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote exile2003 Quote  Post ReplyReply Direct Link To This Post Topic: Poll - Vote Only Once
    Posted: 16 May 2003 at 2:51pm

Just wondering how the vote-once feature of the forum is implemented (just in general terms).  Is it possible for someone to try to vote more than once, even when you set the poll to allow only one vote per user?  I'm guessing this is implemented through cookies, but can this be bypassed?

(No need for specifics, just a Yes or No would be sufficient.  Thanks)

 

 

Back to Top
Commander View Drop Down
Groupie
Groupie


Joined: 27 September 2002
Location: Canada
Status: Offline
Points: 85
Post Options Post Options   Thanks (0) Thanks(0)   Quote Commander Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 3:00pm
it cannot be bypassed unless guests are allowed to post
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 3:08pm

yes it can, all you need to do is delete your cookies and wait until somebody else votes or change your IP (only the last voter's IP is stored in the db) and you can vote as many times as you wish a solution to that would be to store all the votes on a database but you would have to set an expiration date on the poll and have the vote entries deleted from the database once the poll has expired, otherwise the db will get too big and it'll slow down your forum...

FeRnAN
Back to Top
exile2003 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 April 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote exile2003 Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 3:19pm

Thanks for the responses.

Just looked through the source code and have to agree with fernan82, it can be bypassed by someone who knows the code, or spends a little time experimenting.  Wonder if borg would consider adding a "strict" enforcement option of vote-once for polls, where IDs of voters are stored per poll.  That way you can choose to place the "important" polls under strict enforcement. 

 

Back to Top
boyohboy View Drop Down
Groupie
Groupie


Joined: 15 October 2002
Location: United States
Status: Offline
Points: 197
Post Options Post Options   Thanks (0) Thanks(0)   Quote boyohboy Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 3:54pm
obviously borg didn't have time to implement the vote feature fully. Someone can always do a mod
Visit my community website @
EverythingVIET.com
Back to Top
exile2003 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 April 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote exile2003 Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 5:35pm

OK...figure borg is too busy to worry about this, so I tried to make a couple of modifications.  Tested with latest version 7.01 using Access 2000, but should work on 2002 and SQL as well.  Requires some knowledge of Access databases.

Objective: When the vote-once option is checked, this will be "strictly" enforced, not through the use of cookies (which the forums currently used), but through the use of server-stored voters' IDs.  As borg indicates in another post, this may slow down your forum if there are many (in the thousands) voters.  However, this will ensure that each registered user only votes once.  Of course, some one could sign up as multiple users, but the email restrictions could prevent that.  It's highly recommended that you backup your forum and database before attempting this.

1.  Open the forum database in Access, then open the tblPoll table

2.  Add a memo field called "Vote_IDs".  Set Required to No and Allow Zero Length to Yes.

3. Replace the "poll_cast_vote.asp" in the forum directory and "poll_display_inc.asp" in the includes directory with the files below:

http://www.allersoft.com/wwf/poll_mod_701.zip

Then, you're all set.

Note that if your poll is open to "unregistered user", i.e., guests, cookies will be used to enforce single-vote, since all guests have the same ID, 2.

Should also add that for existing polls, the restriction will be applied to new voters only, i.e., if you make these changes, those who already voted CAN vote again, however, new voters will be able to vote only once.



Edited by exile2003
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 6:19pm

I think borg mentioned that he wouldn't implement that cuz of the performance issue.........what i've been thinking and i'm planning to do when i get time (unless someone does it first) is mod it so the user who creates the poll can set an expiration date for the poll, that way when the poll expires the voters IDs can be deleted off the db automatically. That's the way vBulletin works and I like it that way...... i tried to get -Borg- to implement that but he didn't agreed with me....

FeRnAN
Back to Top
exile2003 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 April 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote exile2003 Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 6:29pm

Sounds like a good idea.  For my forums I restrict poll-creating ability to administrators only.  The voter IDs memo field could hold unlimited data.  Say one thousand voters, each ID (assuming 4 digit max, that's for a forum with up to 9999 users) takes up to 5 bytes (4 digits plus the ampersand separator), so one thousand voter IDs take 5 KB, not a huge storage/processing cost.  My implementation is somewhat "quick-and-dirty" so database cleanup is not a big priority.  But if someone could make such a mod with database cleanup, that'd be great!

 

 

 

Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.