Questions tagged [vote]

Voting is a method for a group such as a meeting or an electorate to make a decision or express an opinion—often following discussions, debates, or election campaigns. Democracies elect holders of high office by voting.

186 questions
14
votes
5 answers

Storing "votes" in a database

I'm writing what will be an intranet application, and one of its features is roughly analogous to content voting - not unlike what SO, Amazon, and many other sites do. Assuming each votable piece of content has a unique ID, and each user (they're…
Don Jones
  • 9,367
  • 8
  • 39
  • 49
11
votes
1 answer

Facebook poll based on images

I wish to submit couple of images to Facebook using my app and invite my friends to vote on it for a specific time interval. My question is - Does graphAPI support this. Can I integrate this with my backend system so that I can get the count of…
Jaykay
  • 666
  • 1
  • 4
  • 17
9
votes
9 answers

Vote for the best protocol for the given scenario

I have a design decision to make. I need your advice. Requirements: A server and a client. client is typically a mobile phone. Connected through the Internet. Server and client want to talk to each other. Exchange of text, multimedia between the…
Rohit Banga
  • 18,458
  • 31
  • 113
  • 191
8
votes
3 answers

How do you store and display if a user has voted or not on something?

I'm working on a voting site and I'm wondering how I should handle votes. For example on SO when you vote for a question (or answer) your vote is stored, and each time I go back on the page I can see that I already voted for this question because…
JohnT
  • 967
  • 2
  • 16
  • 30
7
votes
4 answers

Prevent double voting

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…
Kamel Labiad
  • 525
  • 1
  • 6
  • 26
6
votes
4 answers

reddit style voting with django

Hay i need to hand implemeneting a voting system into a model. I've had a huge helping hand from Mike DeSimone making this work in the first place, but i need to expand upon his work. Here is my current code View def show_game(request): game =…
dotty
  • 40,405
  • 66
  • 150
  • 195
5
votes
2 answers

How to calculate average on star rating system?

I am developing a star rating system with 1-5 stars. In my database I am saving them like this: $stars_1 = 1; $stars_2 = 6; $stars_3 = 3; $stars_4 = 11; $stars_5 = 22; $total_votes = 43 When a user votes using for example 3 stars I update stars_3…
Jonathan Clark
  • 19,726
  • 29
  • 111
  • 175
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
3 answers

Implementing an upvote/downvote system in Javascript but can't get the math right

var $arrow = $(this); var $sibling = $arrow.siblings('span.arrow'); var $score = $arrow.siblings('span.score'); var vote = $arrow.hasClass('up') ? 'up' : 'down'; var alreadyVoted = $sibling.hasClass('voted'); if…
dave
  • 7,717
  • 19
  • 68
  • 100
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

Preventing multiple daily votes in a contest

Voting contests seem to gain a lot of attention from people who want to game a system for fun. I know I spend a good amount of time fooling around with their forms and URLs, deleting cookies and writing the occasional crappy script. Is there a way…
Dean Putney
  • 745
  • 8
  • 22
3
votes
1 answer

validating a poll for user to vote once

Creating a public poll.how do you validate that the user only vote once.I tried using an IP address but some organizations use 1 IP address.
3
votes
1 answer

Storing "likes" of an item in a database?

I'm running a Rails app on Postgres through Heroku. I'd like to implement similar to Facebook "likes" on my site for various items, such as user comments. What's the smartest way to store these in my database that will be efficient and fast? The…
William Jones
  • 18,089
  • 17
  • 63
  • 98
3
votes
1 answer

Acts as Votable Prompt on Downvote Rails 4

I am using acts_as_votable on my rails 4 app. I have it set up so upvotes/downvotes are take via an ajax request. I would like to implement a prompt, or a confirmation with a text box inside of it, so when a user downvotes an article a popup is…
Kathan
  • 1,428
  • 2
  • 15
  • 31
3
votes
1 answer

Creating a Session to not to vote again in poll

I've created simple using jQuery AJAX and JSON. I want to know how to create a Session so that the user will not be able to vote again. Following is my code. I am new to Sessions and jQuery. Please tell me how to complete my task. JavaScript…
Akila Randil
  • 205
  • 1
  • 10
1
2 3
12 13