voting-system

Voting algorithm: how to calculate rank?

故事扮演 提交于 2019-12-03 16:13:37
I am trying to figure our a way to calculate rank. Right now it simply takes ratio of wins / losses of each individual entry, so e.g. one won 99 times out of a 100, it has 99% winning rank. BUT if an entry won 1 out of total 1 votes, it will have a 100% winning rank, but definitely it can't be higher that of the one that won 99 times. What would be a better way to do this? Depending on how complicated you want to make it, the Elo system chess uses (or something similar) may be what you want: http://en.wikipedia.org/wiki/Elo_rating_system Even if a person has won 1/1 matches, his rating would

Prevent double voting

房东的猫 提交于 2019-12-03 15:49:46
I'm creating a web application where users will vote for some candidates by clicking thumbs up or thumbs down, and these users won't have any account on the site. What is the best technique to use? Is it necessary to use captcha for more protection from spam? Vote counts are expected to be millions, and the subject is not very critical as long as I get 95% accuracy that would be fine. Thanks. You can combine these two methods: Add a cookie to prevent multiple votes from the same machine Log IP addresses and prevent voting more than a set number of times from the same address (for example, 5

How to restrict votes per day by IP in Php+Mysql voting?

懵懂的女人 提交于 2019-12-02 08:37:52
Hello I have this voting script attached it counts votes by IP address. Please how can I create a kind of time session on the IP addresses. "say 5 votes a day per IP. Voter has to wait another 24 hours before voting again. I know there are kind of questions like this. I have tried few, but I just can't get it to work. Thanks. Update script; <?php include("config.php"); $ip=$_SERVER['REMOTE_ADDR']; $add_time = new DateTime(null, new DateTimeZone('Europe/London')); $time=$add_time->format('Y-m-d H:i:s'); $timeMinus = $add_time = - 60*1*1*1; if($_POST['id']) { $id=$_POST['id']; $id = mysqli_real

Implementing a voting system without requiring registration

╄→гoц情女王★ 提交于 2019-11-29 00:56:53
问题 I'd like to implement a voting system on my site, without having to force them to create an account. They would ultimately be voting up/down a piece of content which has a unique ID. I know that I could store entries in a table with IP/ID, but what if there are more than one user coming from the same IP? Is there a way to uniquely identify visitors without it being tied to their external ip? If created a GUID, store it in a cookie on that machine, could it be retrieved later on that same

jQuery voting system

亡梦爱人 提交于 2019-11-28 09:30:11
So I am making a voting system, basically a Thumbs Up & Thumbs Down voting system. I am using CakePHP and jQuery with MySQL but want to make sure the front end is correct and this is the best way to do it. I want the user to be able to change their vote, so utilizing jQuery is this the best and most efficient way? I'm fairly novice with jQuery when it comes to class manipulation. the ID field is going to be the unique id of the photo the users will be voting on. This of course is just a test and this is not going to be the final product in production. There will be multiple photos on the page

Limit 1 vote per IP Address?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 22:29:45
What I really want is to limit 1 vote per person but the next best thing i can think of is limit 1 vote per IP address to prevent malicious users/hackers from severely tempering with my company's voting system. I was thinking of using a database to keep track of the IP addresses. Update: Sorry about not being clear in the first time aruond. What i wanted to know if limiting 1 vote per IP address was a good strategy to limiting 1 vote per person. Basically, i wanted to know if 1 unique IP address is roughly equal to 1 person. People have already mentioned that proxies and routers re-use ip

jQuery voting system

。_饼干妹妹 提交于 2019-11-27 03:05:39
问题 So I am making a voting system, basically a Thumbs Up & Thumbs Down voting system. I am using CakePHP and jQuery with MySQL but want to make sure the front end is correct and this is the best way to do it. I want the user to be able to change their vote, so utilizing jQuery is this the best and most efficient way? I'm fairly novice with jQuery when it comes to class manipulation. the ID field is going to be the unique id of the photo the users will be voting on. This of course is just a test

Unique IPs in a voting system

巧了我就是萌 提交于 2019-11-27 02:05:47
I'm creating a voting system for my PHP/MySQL website and I would like to make sure one user can only vote once. What would be a good way of doing this? So far I have thought of and semi-implemented the following: Storing individual votes in the database with an IP and vote. This creates bulkiness but ensures that each user gets one vote. Storing a cookie on the user's end to check if they've voted or not. This is the most simple but obviously users can just disable cookies. What would be the most practical approach? Any other suggestions are more than welcome. The Unobtainably-Perfect:

Limit 1 vote per IP Address?

[亡魂溺海] 提交于 2019-11-26 23:10:30
问题 What I really want is to limit 1 vote per person but the next best thing i can think of is limit 1 vote per IP address to prevent malicious users/hackers from severely tempering with my company's voting system. I was thinking of using a database to keep track of the IP addresses. Update: Sorry about not being clear in the first time aruond. What i wanted to know if limiting 1 vote per IP address was a good strategy to limiting 1 vote per person. Basically, i wanted to know if 1 unique IP

Unique IPs in a voting system

懵懂的女人 提交于 2019-11-26 12:31:29
问题 I\'m creating a voting system for my PHP/MySQL website and I would like to make sure one user can only vote once. What would be a good way of doing this? So far I have thought of and semi-implemented the following: Storing individual votes in the database with an IP and vote. This creates bulkiness but ensures that each user gets one vote. Storing a cookie on the user\'s end to check if they\'ve voted or not. This is the most simple but obviously users can just disable cookies. What would be