voting

Stack Overflow / reddit voting system in php

一曲冷凌霜 提交于 2019-11-27 21:41:43
I'm looking for examples of how to implement a StackOverflow / reddit voting system in php. Basically I want the Up and Down arrow box. Are there any good examples out there? There are lots of scripts out there but it's not too hard to do yourself. I've used jQuery (to handle AJAX) and a small PHP script before. For example, some pseudo-code: // Some checking for recent votes from this user is appropriate here if (isset($_POST['voteType'], $_POST['postId']) && $user->loggedIn) { // insert vote into database if not already inserted echo json_encode(array('error' => false)); } else { // bad

Django Vote Up/Down method [closed]

扶醉桌前 提交于 2019-11-27 19:45:49
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am making a small app that lets users vote items either up or down. I'm using Django (and new to it!). I am just wondering, what is the best way to present the upvote link to the user. As a link, button or something else? I have already done something like this in php with

Hunting cheaters in a voting competition

谁说胖子不能爱 提交于 2019-11-27 06:02:10
Currently we are running a competition which proceeds very well. Unfortunately we have all those cheaters back in business who are running scripts which automatically vote for their entries. We already saw some cheaters by looking at the database entries by hand - 5 Star ratings with same browser exactly all 70 minutes for example. Now as the userbase grows up it gets harder and harder to identify them. What we do until now: We store the IP and the browser and block that combination to a one hour timeframe. Cookies won't help against these guys. We are also using a Captcha, which has been

Stack Overflow / reddit voting system in php

梦想与她 提交于 2019-11-26 20:45:51
问题 I'm looking for examples of how to implement a StackOverflow / reddit voting system in php. Basically I want the Up and Down arrow box. Are there any good examples out there? 回答1: There are lots of scripts out there but it's not too hard to do yourself. I've used jQuery (to handle AJAX) and a small PHP script before. For example, some pseudo-code: // Some checking for recent votes from this user is appropriate here if (isset($_POST['voteType'], $_POST['postId']) && $user->loggedIn) { //

Hunting cheaters in a voting competition

时光怂恿深爱的人放手 提交于 2019-11-26 11:50:33
问题 Currently we are running a competition which proceeds very well. Unfortunately we have all those cheaters back in business who are running scripts which automatically vote for their entries. We already saw some cheaters by looking at the database entries by hand - 5 Star ratings with same browser exactly all 70 minutes for example. Now as the userbase grows up it gets harder and harder to identify them. What we do until now: We store the IP and the browser and block that combination to a one

Stopping users voting multiple times on a website

↘锁芯ラ 提交于 2019-11-26 07:35:03
问题 I\'m planning to add some vote up/vote down buttons to a website I run. This seems easy enough but I want to stop people voting multiple times. One solution would be to make them register before allowing them to vote but I\'d prefer not to have to force them to register. Is there are a reasonably straightforward way of doing this? Checking the IP address doesn\'t seem like a good solution, since it\'s possible that multiple users may come from the same IP address. Cookies might be the answer,