Questions tagged [voting]

329 questions
9
votes
2 answers

Sorting A List Of Songs By Popularity

For student council this year, I'm on the "songs" committee, we pick the songs. Unfortunately, the kids at the dances always end up hating some of the stupid song choices. I thought I could make it different this year. Last thursday, I created a…
Matt Egan
  • 809
  • 1
  • 10
  • 16
8
votes
3 answers

Best practice for comment voting database structure

I'm working on a PHP app that has several objects that can be commented on. Each comment can be voted on, with users being able to give it +1 or -1 (like Digg or Reddit). Right now I'm planning on having a 'votes' table that has carries user_id…
mdolon
  • 177
  • 2
  • 10
8
votes
2 answers

How can I apply mathematical function to MySQL query?

I've got the following query to determine how many votes a story has received: SELECT s_id, s_title, s_time, (s_time-now()) AS s_timediff, ( (SELECT COUNT(*) FROM s_ups WHERE stories.q_id=s_ups.s_id) - (SELECT COUNT(*) FROM s_downs WHERE…
Corpo
7
votes
3 answers

How do you structure a database that allows voting similar to how stackoverflow does it?

I'm new to databases and web development but I'm trying my best to learn my way though making my own dynamic website. I'm taking it step by step and am currently designing the data model on paper. I'm wonder how does one structure a database for a…
user1263500
  • 83
  • 2
  • 5
7
votes
3 answers

What is the "make everyone happy" voting algorithm?

I'm looking for a voting algorithm that picks the winners based on combination of majority of votes and number of votes. Real life example: Our company has a cereal bar. We have room for 3 different cereals. We want to allow our employees to…
joshuapoehls
  • 32,695
  • 11
  • 50
  • 61
7
votes
2 answers

which rails voting system gem has the following features?

Which rails voting system plugin or gem that has the following features vote up &down Ability to show net number of votes vote for all objects in the model (But only once per object per user) list all objects in the model by higher number of…
katie
  • 2,921
  • 8
  • 34
  • 51
6
votes
2 answers

Designing a Django voting system without using accounts

We are considering implementing a voting system (up, down votes) without using any type of credentials--no app accounts nor OpenID or anything of that sort. Concerns in order: Prevent robot votes Allow individuals under a NAT to vote without…
Belmin Fernandez
  • 8,307
  • 9
  • 51
  • 75
6
votes
4 answers

How should I order these "helpful" scores?

Under the user generated posts on my site, I have an Amazon-like rating system: Was this review helpful to you: Yes | No If there are votes, I display the results above that line like so: 5 of 8 people found this reply helpful. I would like…
mitchf
  • 3,697
  • 4
  • 26
  • 29
6
votes
1 answer

Rating/Voting and Tag APIs, do they exist?

Everyone loves to display Digg/Tweet/Like badges on their websites, and the Disqus Comment System is starting to take over. (source: disqus.com) (source: digg.com) The benefits of those systems from a developers perspective are: You don't…
Lance
  • 75,200
  • 93
  • 289
  • 503
6
votes
5 answers

Voting algorithm: how to calculate rank?

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…
mvbl fst
  • 5,213
  • 8
  • 42
  • 59
6
votes
2 answers

What are the implications of offering a public voting system (no sign-in required)?

I am wondering what are the technical hurdles involved with offering a voting system (or say ratings) without requiring the user to sign in. I know there are issues with robots, voting a bunch - but what if you keep the users IP address? Do proxies…
Matt
  • 22,224
  • 25
  • 80
  • 116
6
votes
3 answers

Best way to implement voting in a Rails application?

What's the best plugin these days for implementing voting on a Rails site? Two I'm aware of are: vote_fu acts_as_voteable
Tom Lehman
  • 85,973
  • 71
  • 200
  • 272
6
votes
2 answers

Voting - Number of votes vs Vote percent?

I've implemented a simple up/down voting system on a website, and I keep track of individual votes as well as vote time and unique user iD (hashed IP). My question is not how to calculate the percent or sum of the votes - but more, what is a good…
Tim
  • 14,447
  • 6
  • 40
  • 63
5
votes
1 answer

How can I make remember voting with cookies easier than this?

It is the most easiest to describe my problem with a working example: even if you are not logged in, YouTube remembers what you have watched, and next time gives you suggestions based on previous watched movies. My site is similar in a way: the…
ZTefter
  • 189
  • 1
  • 2
  • 11
5
votes
2 answers

Voting system/engine for customers?

I'm talking about some web thing like http://uservoice.com/ Can you suggest any other similar service, web-site or may be (even better) a ready engine for deployment on own server? Actually, the question more about systems, which can be installed on…
Alex
  • 5,477
  • 2
  • 36
  • 56
1
2
3
21 22