Questions tagged [voting-system]

179 questions
4
votes
2 answers

The most efficient method storing voting data in a MySQL database (like StackOverflow)

I'm trying to replicate SE's voting system. User's on my website should only be able to vote on posts one time, then they are locked in. I currently have two tables, users and posts. How should I store information on which posts a user has voted on?…
user623990
4
votes
1 answer

How do I execute a vote using the Rails 3 gem 'thumbs_up'?

So I want votes to be triggered using jQuery/AJAX and an image. i.e. I have a thumbs up icon and thumbs down. I have setup the gem, and ran the rake db:migrate and have everything sorted out. But I am not sure how to execute a vote in my app. In my…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
4
votes
3 answers

Restrict User Activity Based on IP or on Cookie?

I am working on a PHP script that allows users to vote on certain items. Any user whether logged in or not can vote. Consider the following cases: If the user is logged in, I can log user's id, and can restrict voting on the same item if he tries…
abhisek
  • 924
  • 1
  • 13
  • 27
4
votes
2 answers

is it possible to check if someone is trying to vote from the same computer

From my knowledge the answer to this question is no, but i might be missing something. There are some polling sites which claim that voting from the same computer is forbidden and will result in a ban. How can they detect that? A cheater may use…
Valentin Brasso
  • 1,388
  • 7
  • 21
  • 41
4
votes
3 answers

jQuery voting system

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…
Bot
  • 11,868
  • 11
  • 75
  • 131
4
votes
1 answer

Does anyone know of any good open source voting software?

I'm looking for a voting system that we can implement at work amongst our developers. We need something that allows developers to submit ideas about what we can do to improve our development practices (amongst other things) and then have all the…
mezoid
  • 28,090
  • 37
  • 107
  • 148
3
votes
3 answers

How does Youtube remember Likes?

So I'm wondering how sites like YouTube remember when a user has "Liked" a video and prevents them from liking it again. Similarly, how a site like Reddit remembers upvotes and downvotes and prevents a user from upvoting a piece of content they…
John
  • 295
  • 3
  • 11
3
votes
2 answers

Having logic problems with a voting system

i am looking for help on an up down voting system. at the moment i have a voting table that references the user that voted , the user who was voted for and the piece of information(a parking spot) that was voted for CREATE TABLE…
molleman
  • 2,934
  • 16
  • 61
  • 92
3
votes
3 answers

Which one is better for a voting function

Which system would be the best to go ahead with for voting function and why? ; Putting the votes separately inside a database table and calculating the average when it is needed Having only one row for one product. When a new vote comes, getting…
tugberk
  • 57,477
  • 67
  • 243
  • 335
3
votes
4 answers

Shuffle JS array with probability

Say I have an array like so: const alphabet = ['a', 'b', 'c', 'd']; This represents 4 political candidates and a rank choice vote, where candidate a is first choice, b is second choice, etc. I want to shuffle this into a bunch of random orders, but…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
3
votes
1 answer

Voting update on Ruby on Rails

Right now, I'm in the middle of building a social media app on Ruby on Rails, i have implemented a 5 point voting system. Where you can vote the news posted on the site from 1-5, what I'd like to know is, What is the best approach at handling the…
Gotjosh
  • 1,019
  • 4
  • 13
  • 34
3
votes
1 answer

Database design for voting

I am implementing a voting feature to allow users to vote for their favourite images. They are able to vote for only 3 images. Nothing more or less. Therefore, I am using checkboxes to do validation for it. I need to store these votes in my…
Enovyne
  • 195
  • 1
  • 7
  • 20
3
votes
4 answers

PHP voting system with sessions?

I've been reading up on stackoverflow about creating voting systems in PHP that minimize abuse/multiple voting from the same user, but I haven't come across the answer to my question. I've got an application where users don't need to register to…
pingu
  • 614
  • 1
  • 10
  • 23
3
votes
6 answers

how to vote ONCE on website without authentication

I want people to be able to vote on my site, but I don't like sites that forces registration to do this. So my question is, is the any way to vote up/down, save the votes in a database, and make sure a person can only vote once? Without using…
Green_qaue
  • 3,561
  • 11
  • 47
  • 89
3
votes
2 answers

Comment voting with acts as votable

I'm trying to implement a voting system to the comments in the posts using Acts as votable gem. At this stage I'm getting this error ActionController::UrlGenerationError in Posts#show followed by - No route matches {:action=>"upvote",…
Shuvro
  • 1,499
  • 4
  • 14
  • 34
1
2
3
11 12