| EN - Requests • Poll - Vote once per day (on the same Poll) |
| 16.07.2012, 02:28 - MCExhibit - webSPELL newbie - 11 Posts
Hi everyone, I'm making a contest website and I need an addon for polls (2o options) that will allow registered users to vote ONCE per day (per Ip address). If you could help that will be SUPERBLY appreciated. Thank you in advance and thanks for your time. Minecraft building competition for prizes: www.mcexhibit.com |
||
| 16.07.2012, 12:33 - Helgon - webSPELL user - 399 Posts
Its already restricted by one vote per day (checking ur ip) http://www.q-visions.de/ - Webentwicklung & Design |
||
| 16.07.2012, 22:12 - MCExhibit - webSPELL newbie - 11 Posts
Really? It only lets me vote once period. Code:
If I set $cookie = true it won't register the votes. Minecraft building competition for prizes: www.mcexhibit.com |
||
| 16.07.2012, 23:28 - Helgon - webSPELL user - 399 Posts
is that your code or from the default file? http://www.q-visions.de/ - Webentwicklung & Design |
||
| 17.07.2012, 03:20 - MCExhibit - webSPELL newbie - 11 Posts
I changed time() + (3600 * 24)); from time() + (3600 * 24 * 365)); But I installed a 20 options addon for the vote so it may have altered the code. Here's the polls.php http://pastebin.com/samjQPEk Minecraft building competition for prizes: www.mcexhibit.com |
||
| 17.07.2012, 13:34 - Helgon - webSPELL user - 399 Posts
ah.. i miss understood your problem. so you want just registred people to be able to vote? http://www.q-visions.de/ - Webentwicklung & Design |
||
| 18.07.2012, 01:33 - MCExhibit - webSPELL newbie - 11 Posts
I want voters to be able to vote once per day but right now they can only vote once period. If I try to turn cookies to "true" then the votes dont register. Minecraft building competition for prizes: www.mcexhibit.com |
||
| 18.07.2012, 21:28 - MCExhibit - webSPELL newbie - 11 Posts
bump/push Minecraft building competition for prizes: www.mcexhibit.com |
||
| 20.07.2012, 06:30 - MCExhibit - webSPELL newbie - 11 Posts
bumpity bump Minecraft building competition for prizes: www.mcexhibit.com |
||
| 20.07.2012, 13:26 - Pascalmh - Administrator - 3068 Posts
You have to add the time of a user who voted also into the database as well since multiple-votes of loggedin users are not prevented only by cookies but also via database. Then check if the vote was made <=24h ago - if so delete the Users Voteinformation from the database so he can vote again. |
||
| 23.07.2012, 04:33 - MCExhibit - webSPELL newbie - 11 Posts
Pascalmh wrote: You have to add the time of a user who voted also into the database as well since multiple-votes of loggedin users are not prevented only by cookies but also via database. Then check if the vote was made <=24h ago - if so delete the Users Voteinformation from the database so he can vote again. I'm not sure how to do this... is there a available addon? If not could I request this? Minecraft building competition for prizes: www.mcexhibit.com |
||
| 28.07.2012, 04:41 - MCExhibit - webSPELL newbie - 11 Posts
Bump, anyone? Minecraft building competition for prizes: www.mcexhibit.com |