Questions tagged [vote-up-buttons]

32 questions
0
votes
1 answer

Rails 3 - Thumbs_up - customized button

Hi I've installed the Thumbs_up gem and it works great. But now I want to do a button that does the same as this. <%= link_to('vote for this post!', vote_up_retailer_path(@retailer), :remote => true, :method => :post) %> The problem I got is that…
Philip
  • 6,827
  • 13
  • 75
  • 104
0
votes
1 answer

How to increase a value (pushing a button) in a html django template using a for loop?

I'm actually programming a ask-a-question website for a school project. I followed the first step of the django tutorial from the official website but i'm now trying to improve it myself. I added a 'vote' button in each div (which are created in a…
lL. Bob
  • 51
  • 5
0
votes
1 answer

Sessions: Click to raise number

I want to make a voting section so that when the user clicks a link it adds up a number (limit to one peer ip or something like that). For example: Celtics: 0 (Click to vote) -----------this one is cliked Lakers: 0 (Click to vote) Celtics:…
Norman
  • 79
  • 1
  • 1
  • 7
0
votes
3 answers

How do you create Stack Overflow-style Up-Down arrows?

I am trying to create vote up and down arrows similar to what exists here on Stack Overflow. Ideally I'd like to have them interact dynamically with a piece of text recording the number of votes, just as they do on Stack Overflow.
Spencer
  • 21,348
  • 34
  • 85
  • 121
0
votes
2 answers

PHP Top rated stories

I have 2 tables: stories ID (int), CONTENT (text) votes ID (int), TYPE (int, 1 or 0), ID_STORY (int) How can I get the query to return the first top 10 stories ordered by votes (=1) desc.? I want to be able to print the top 10 stories content. I've…
Stefan
  • 39
  • 1
  • 1
  • 2
0
votes
2 answers

Vote up-down using Mysql , Jquery and Php

I am trying to make vote up-down system using php ,mysql and jquery. It works perfectly on front-end but, at the back-end it does not add data in the database. Any help/suggestions will be appreciated..!! Following is the code..
Dhruvi Mistry
  • 122
  • 1
  • 3
  • 13
0
votes
2 answers

Up and Downvote button

I try to achieve an up or downvote button where a user is able to vote just 1 time up and 1 time down. If you already have upvoted something it should be possible to remove that with another click on the upvote button, but i dont know what is…
0
votes
1 answer

Trying to get my voting system to work and log in backend in Parse

I am trying to create a voting system and store it to my backend and have it come up for each individual picture and be stored for each picture. I created a column in my backend Parse called "count" but i cant seem to get the votes to be brought up…
0
votes
2 answers

Drupal module CSS character adjustment

I built Bachelor10.com with some assistance a few years back. I used the Vote Up/Down module. On pages like this, http://bachelor10.com/bachelor-handbook/top-10-bachelor-party-movies, the Vote Up/Down module is in triple digits on both positive and…
0
votes
1 answer

Value update in ng-repeat with AngularJS and Firebase

I'm trying to implement upvotes into my application when a user posts a comment. I can get the votes to display in my view, but can't figure out how to save them to Firebase. JS var commentRef = new Firebase(FIREBASE_URL); var commentsync =…
0
votes
1 answer

rails: upvoted pin by user (exists? relation)

So I have a pretty simple upvote system in my rails app, that allows users to upvote a pin: pins_controller.rb def upvote @pin = Pin.friendly.find(params[:id]) if @pin.votes.create(user_id: current_user.id) flash[:notice] = "Thanks for…
0
votes
1 answer

Can I get a little help on this php/javascript voting code?

This is a continuation of this question: Move div based on user voting I first posted the question as an unregistered user, and then later registered, so I couldn't edit or add to my original question... Justin Johnson really helped me out with the…
Joel
  • 2,691
  • 7
  • 40
  • 72
0
votes
2 answers

How to find user has voted.

I am building a website. I want user to cast votes without login. But each user should allow only one vote for each question (similar to stack overflow voting system). I see somethig similar in urban dictionary (http://www.urbandictionary.com/)…
Sriwantha Attanayake
  • 7,694
  • 5
  • 42
  • 44
0
votes
1 answer

Thumbs_up gem rails - how to take back a vote?

I finally got my votes being submitted correctly via ajax, however I can' seem to unvote at all. Here's my models: class User < ActiveRecord::Base acts_as_voter end class Vendor < ActiveRecord::Base acts_as_voteable end My…
settheline
  • 3,333
  • 8
  • 33
  • 65
0
votes
1 answer

Ruby On Rails: Thumbs Up Voting Display Tally Results

I have the Thumbs_Up gem loaded and the voting is working fine. I added this code to the posts controller: def poll_winners @posts = Post.tally( { :at_least => 1, :limit => 20, :order => 'vote_count desc' }) I just can't figure out what…