Questions tagged [voting-system]

179 questions
1
vote
1 answer

storing/updating a time decay function in activerecord reputation system

I'm implementing a reputation system similar to reddit on a personal project, and have a time decay formula I'm wanting to use for it. I'm wondering: are you able to use a time-based decay formula for weighting within the activerecord reputation…
Sean Johnson
  • 193
  • 11
1
vote
1 answer

Trouble passing the right IDs and updating score in reddit-style voting-system

I'm trying to adapt this reddit-style voting-system for my site: http://www.technabled.com/2009/02/reddit-style-voting-with-php-mysql-and.html I'm having trouble with the votes.php script that is supposed to fetch the plus or minus vote and update…
Mojoe
  • 13
  • 3
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…
1
vote
1 answer

Trying to construct a like-selecting MySQL query fails

Background info System OS: bash$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 6.0.5 (squeeze) Release: 6.0.5 Codename: squeeze MySQL: bash$ mysql --version mysql Ver 14.14…
Axel Latvala
  • 576
  • 3
  • 7
  • 21
1
vote
1 answer

How can i add a review useful vote system in magento?

I want to add a thumbs up / thumbs down system to the magento review system and don't quite know where to start. What are the files that control the review and how would I go about extending it to fit my needs ? Thanks
Mihai
  • 133
  • 1
  • 14
1
vote
2 answers

how to prevent multiple votes from a single user

I am writing a web app on google app engine with python. I am using jinja2 as a templating engine. I currently have it set up so that users can upvote and downvote posts but right now they can vote on them as many times as they would like. I…
clifgray
  • 4,313
  • 11
  • 67
  • 116
1
vote
1 answer

PHP Poll Script with Hourly Reset & Multiple Voting

I'm looking for a script (or one that I can easily modify to do this) that allows visitors to vote 10 times every hour or day. After they've hit that limit, it can compare it to the IP or a cookie and say they've voted too much. I don't need it to…
Rob
  • 153
  • 1
  • 2
  • 11
1
vote
1 answer

No route matches {:action=>"vote_up", :controller=>"posts"} error for thumbs_up

I'm trying to implement the thumbs_up gem into my app and I keep getting this error even though I have a route for the vote_up action My posts controller looks like def vote_up begin current_user.vote_for(@post =…
1
vote
2 answers

Choice of database for a voting application

I have seen a lot of topics asking for the choice of a database for a voting mechanism,but my inputs are a bit different. I have an application which contains a GUI in which there can be multiple fields/ radio button or a combination of the above.…
Raveesh Sharma
  • 1,486
  • 5
  • 21
  • 38
1
vote
3 answers

Implementing A Ranking System

I've seen several question on how to secure and prevent abuse of ranking systems (like staring movies, products, etc) but nothing on actually implementing it. To simplify this question, security is not a concern to me, the people accessing this…
dimo414
  • 47,227
  • 18
  • 148
  • 244
0
votes
1 answer

How would you add weight to a voting system like "thumbs-up" based on time?

There's a cool library I found for voting on things -> https://github.com/brady8/thumbs_up I'd like to be able to modify it myself or with someone's help to add weight based on time. Business logic wise, I have an idea of how to do it, but could use…
Daniel Fischer
  • 3,042
  • 1
  • 26
  • 49
0
votes
1 answer

How to create a simple vote by ajax in CakePHP 2.0

I am just trying to create a simple vote with CakePHP 2.0 and Ajax. I am a newbie in this framework so i find it really difficult... I just want to create a link with a vote action which will call an action in a controller to update the field…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
0
votes
1 answer

How to make sure users can only vote once per post

I'm building a website which has a feature which ressembles SE's voting system. I'm trying to restrict users from voting more than once per post. Currently, I was thinking of having a field in my user mysql database that would keep a list of ids…
user623990
0
votes
0 answers

How to fix : Stack too deep. Try compiling with `--via-ir` (cli) or the equivalent `viaIR: true` (standard JSON) while enabling the optimizer

Please how can I fix this problem? Someone should help. I am new to build a base of blackchian voting system CompilerError: Stack too deep. Try compiling with --via-ir (cli) or the equivalent viaIR: true (standard JSON) while enabling the optimizer.…
0
votes
0 answers

Python Guizero -- how to increment 1 on counter variables only after exiting app?

I am having a problem with adding votes or incrementing 1 vote to counter variables only after the app is exited using the X in the top right hand corner of the window. Is there a way to do this either making the variables "counter" [1 through 6]…