Questions tagged [voting]

329 questions
5
votes
2 answers

Counting number of positive and negative votes:

I have the following tables: post (id, title, content) etc author (id, username) etc author_vote (post_id, author_id, value) Value is a tiny_int that can either be 1 or -1. I want to count the number of positive and negative votes for each…
jonnnnnnnnnie
  • 1,219
  • 3
  • 15
  • 24
5
votes
2 answers

Programming strategies for allowing anonymous / unauthenticated voting on web sites

I'd like some pseudo-code or white board suggestions for permitting unauthenticated voting on my site. I've looked through related threads on this topic, but I think my scenario is different enough to warrant its own thread. There are 3 core…
Armchair Bronco
  • 2,367
  • 4
  • 31
  • 44
5
votes
1 answer

Stack Overflow / reddit voting system in php

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?
Yada
  • 30,349
  • 24
  • 103
  • 144
5
votes
3 answers

Up/down voting script

I'm trying to develop a voting system in PHP for my posts where visitors can vote them up or down and then I should be able to sort posts by highest/lowest rated. Can anyone please recommend a good script I can use for this?
Vvv
  • 53
  • 1
  • 4
5
votes
2 answers

How to mitigate against bandwagon effect (voting behavior) in my ranking system?

What I mean by bandwagon effect describes itself like so: Already top-ranked items have a higher tendency to get voted on at all, possibly even to get upvoted. What I am hoping to get is some concrete recommendations, at best based on your practical…
Geradeausanwalt
  • 2,040
  • 1
  • 17
  • 16
5
votes
3 answers

Counting anonymous votes accurately

I'm building a small application that highly depends on anonymous user voting on some sort of items. It's so small that requiring registration would be tedious and could not be justified. Anyway, I did some research on this, including a search here…
KeyStroke
  • 1,455
  • 5
  • 19
  • 24
5
votes
2 answers

Move div based on user voting

I'm new here, but I love the site. I checked through the other similar questions, but I didn't see what I'm looking for. I'm a musician, and I've been doing a "song of the day" thing for a while where I write a little song every day. I want to…
Joel
  • 2,691
  • 7
  • 40
  • 72
5
votes
3 answers

A Ranking algorithm

I need to sort some products base on user ratings. Suppose we have 3 products {a,b,c} and we have user's feedbacks about this products. It's not important which user give us feedback (this question is not about correlative filtering if you are…
EBAG
  • 21,625
  • 14
  • 59
  • 93
5
votes
3 answers

Secure voting system with php without login

Is there a way to make a reasonably secure system to vote without having to login. I now use cookies to set if the person has voted yet and also insert the users ip in the database. If that user removes his cookies, he will be able to vote again.…
5
votes
4 answers

Untraceable voting for registered users

I want make to a untraceable voting system that would allow registered users to vote on some sensitive issue in a way, that would make it impossible to track votes back to users in a case of database compromise (including being "compromised" by…
Oleg V. Volkov
  • 21,719
  • 4
  • 44
  • 68
4
votes
3 answers

How do I set up acts as votable to not require user sign in?

I'm trying to allow users to vote on threads without having to sign in/up in order to increase user engagement. How do I do this? At the moment my current though process is to tie votes with the visitor's IP address in order to prevent multiple…
ahuang7
  • 804
  • 1
  • 11
  • 26
4
votes
3 answers

405 error on django ajax POST

I have a model with a integer field wich will increment on user click, like a "vote this" button. The button only shows on the detail view. To increment the vote count it sends an ajax POST. The problem is that django returns a 405 (method not…
CastleDweller
  • 8,204
  • 13
  • 49
  • 69
4
votes
1 answer

How does Reddit sort query their database for "what's hot"?

I want to implement something similar on my site. Submissions have up_votes and down_votes. I'd imagine reddit does some sort of database query that takes into account the up_votes vs. total_votes and maybe factors in # of views and # of comments…
goddamnyouryan
  • 6,854
  • 15
  • 56
  • 105
4
votes
3 answers

How to ban or remove unruly or abusive SO cit

Clearly there needs to be a way I think ? EDIT: dup of https://stackoverflow.com/questions/572113/how-to-deal-with-repeated-abuse
Scott Evernden
  • 39,136
  • 15
  • 78
  • 84
4
votes
1 answer

Spring-security - AccessDecisionVoter-impl wont be invoked

I am trying to create custom AccessDecisionVoter and just stop it in the debugged when it gets invoked. I have put a breake point in each method, but nothing happed. spring-security.xml:
fatnjazzy
  • 6,070
  • 12
  • 57
  • 83
1 2
3
21 22