Questions tagged [voting]
329 questions
1
vote
1 answer
rails, 2 iterations of acts_as_votable
I have an acts_as_votable voting system working right now.
But, I want to add a second vote link/button system to the same model/user group to track another type of vote. How would I go about doing this? I was thinking to create a whole new…

gitastic
- 516
- 7
- 26
1
vote
1 answer
JOIN with 2 Tables (Voting) Mysql, PHP
Hello I have 3 Tables but i need only help with 2 Tables.
The first Table is champions. In this Table are over 100 names.
The second Table is champion_names there are nicknames for the first Table.
The third Table is champion_names_vote. There are…

Blizzard002
- 11
- 3
1
vote
3 answers
Drupal - building a photo gallery for voting with Fivestar voting module
How would I be able to use the Drupal Fivestar voting module for voting on photos in a gallery without each photo being a separate node. I've used the Fivestar module for voting on seperate nodes, but making each photo in a gallery a node doeasn't…

EricP
- 1,459
- 6
- 33
- 55
1
vote
1 answer
2 stage button in jQuery
I am new to jQuery so please don't judge me too harshly!
I'm making a page which lists videos, under each video there is a voting button. The button works in 2 stages, first you click it which expands the button, then the second click should confirm…

Matt
- 31
- 3
1
vote
2 answers
Get Undefined local variable or method for vote acts_as_votable Rails
I'm using the Commontator gem to enable comments from user. The Commontator gem is already set up to easily integrate acts_as_votable. I followed the instruction to enable Voting
In config/initializers/commontator.rb/ I changed config.comment_voting…

Cyzanfar
- 6,997
- 9
- 43
- 81
1
vote
2 answers
Determining the popularity of a video with ratings and views
I am about to embark on a new project - a video website. Users will be able to register, and vote on videos by clicking "like" or "dislike", or something to that effect. In any event, it will be a 2-option voting system, not a 5-star system.
Every…
user295825
1
vote
1 answer
How to avoid images being displayed in one column
I am developing a gallery website where users can visit images that other people have shared. I have created the gallery and images can be viewed using thumbnails and the images upload from the right of the previsous image. If an image is at the…

psandhu
- 65
- 2
- 6
1
vote
1 answer
Voting buttons, Yes and No. Rails 4
Hi I'm adding voting to my site. Users can vote Yes or No. I made the form but it returns an error, only for the Yes button
<%= form_for([@post, @post.votes.build]) do |c| %>
<%= c.input value: 1, type: :hidden %>
<%=…

TheVic
- 303
- 6
- 16
1
vote
2 answers
Best method to get current user vote type for hundreds posts with Rails
What's the best method to show user his vote type (for/against/abstain) on page with lots of post items?
direct query is
SELECT vote_type FROM votes WHERE post_id = 888 AND user_id = 888
and direct way with rails
post.votes.where(:user_id =>…

br.
- 1,259
- 1
- 14
- 21
1
vote
1 answer
AJAX and Voting Script (beginner)
Hey I know that they are many threads about the theme but i need your help because i am a complete noob in AJAX / JQuery stuff ://
I just want that my site doesn´t reload when somebody votes. I have two scripts (an example for thumbsdown)
if…

user3092548
- 21
- 5
1
vote
2 answers
Voting system with jQuery, Ajax and PHP works only local server
I am a no good in PHP (just learning).
I tried modifying a php voting script which I downloaded from a free source. i can add image though (it was not an easy task for me and I am not done yet).
Now Voting works fine on my local server , but online…

Vin Nwaikwu
- 67
- 1
- 13
1
vote
2 answers
How to add karma to users on Thumbs Up on Rails
I am using thumbs_up gem for Rails and looking for how can you add more karma to a user programmatically? Or initialize a user with 100 karma?

ajbraus
- 2,909
- 3
- 31
- 45
1
vote
1 answer
user only able to vote on own uploads in thumbs_up
I installed the gem 'thumbs_up', '~> 0.6.7' ran the necessary migrations per instructions and now having some issues getting this to function properly. Thanks for bearing with me as I am new with RoR. I'm running rails 4.0.0. and building a simple…

Mark Rybarczyk
- 11
- 3
1
vote
1 answer
PHP/JQuery submit button: can´t seem to get ID from current row
I have a grid with a little voting system. There are dates listed in every row with a + at the end of each row, which is used to vote. Here´s an image:
http://doubledream.square7.de/upload/dates.PNG
the white text displays the dates, the green text…

Drencrom
- 31
- 7
1
vote
1 answer
Drupal: A way to vote for best image in a given gallery
We have a Drupal 7 site where we need users to choose the best image in an image gallery. I am going in circles trying to find the best way to accomplish this. I know there are "ratings" modules like 5 star etc, but we're not really wanting to rate…

Erich H.
- 467
- 1
- 9
- 28