rating-system

Rating and reviews from within an IOS app [duplicate]

余生长醉 提交于 2019-12-17 17:38:28
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Direct “rate in iTunes” link in my app? It's possible to let the user rate or write a review from within my app ?, or my only option is to prompt a message asking my user to rate the app ? In-app purchases can be rated ? Someone told me that when an app was erased, it was possible to ask the user to ask rate the app, but that feature was removed in IOS4. It's this true ?, the SDK provides me any support to do

Finding most liked item of a user with rating values

狂风中的少年 提交于 2019-12-12 03:08:35
问题 Let's assume that a user votes for some movies in a scale of 1 to 5. These movies has genre info, and a movie can have more than one genre. Like this: Movie A Rating 4 Action/Sci-Fi Movie B Rating 5 Comedy/Action Movie C Rating 4 Comedy/Drama We want to learn which genre likes our user. Here we have our result set: Genre Movie_Count Average_Rating ---------- Action 2 5 Comedy 2 4.5 SciFi 1 4 Drama 1 4 Obviously, we cannot predict anything with such a small resultset, but let us assume that we

Advanced rating system MySql database optimization

情到浓时终转凉″ 提交于 2019-12-11 10:52:24
问题 I am working on a rating system with this conditions: There are some users and their info are stored in users table, each user has some images that are rated by the visitors (from 0 to 10), the images are stored in images table and the rates in rates table. Now I want to get the top rated (average rate) images on a specific day, so I wrote this query: SELECT images.id AS iid, images.id, images.uid, images.path, images.sdate, images.croped, users.id, users.provider, users.twitterid, users

Star Rating System is Only Updating First Item on the List

流过昼夜 提交于 2019-12-08 07:20:39
问题 I've implemented a Star Rating System using this tutorial http://eighty-b.tumblr.com/post/1569674815/creating-an-ajaxified-star-rating-system-in-rails-3 Everything works in the SHOW PAGE , But in the INDEX PAGE , For some reason the Javascript only updates the first Book in the INDEX PAGE . And when I click other Book Ratings, it still only Updates the First Book. Another thing that I find odd is that the code only works in the Index Page when I am not using the CSS to hide the radio buttons

Ruby on Rails: Can't implement Star Rating system

痞子三分冷 提交于 2019-12-06 14:24:14
问题 I'm trying to add a simple Star Rating system for my app having taken this tutorial for an example. I have User, Hotel and Rating models. Dependencies are: (rating.rb) belongs_to :user belongs_to :hotel (hotel.rb) & (user.rb) has_many :ratings And with the following code in hotel view I get this error: NameError in Hotels#show undefined local variable or method `user' for Class... (in the line with <%= form_for ...) Hotel view (show.html.erb): <% form_id = "hotel_#{@hotel.id}_rating" %> <% if

How to avoid that a user removes his session

别等时光非礼了梦想. 提交于 2019-12-06 13:12:59
The use case Currently, I am trying to build a page where users can vote on content ( up/downvote , similar to the function on the StackExchange network). But the users shouldn't need to register themselves to vote on content. So it would be a kind of "anonymous" voting page . It is built with Laravel5 and uses a MySQL database to store the votes. The user sessions are stored in flat-files, but can be also stored in a database table (L5 is quite flexible here). The problem How to make it secure? . I am storing restrictions and already voted contents in the user sessions, e.g. when the user has

Ruby on Rails: Can't implement Star Rating system

血红的双手。 提交于 2019-12-04 19:57:46
I'm trying to add a simple Star Rating system for my app having taken this tutorial for an example. I have User, Hotel and Rating models. Dependencies are: (rating.rb) belongs_to :user belongs_to :hotel (hotel.rb) & (user.rb) has_many :ratings And with the following code in hotel view I get this error: NameError in Hotels#show undefined local variable or method `user' for Class... (in the line with <%= form_for ...) Hotel view (show.html.erb): <% form_id = "hotel_#{@hotel.id}_rating" %> <% if signed_in? %> <!-- To avoid throwing an exception if no user is signed in --> <% user_id = current

How to build simple reviewing and 5-star rating system? [closed]

你离开我真会死。 提交于 2019-12-04 07:37:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I'm very new to web technologies and this is basically for a term project that my team is working on. We are working on a food review site. As of now, I'm not quite sure how to implement a simple 5-star rating system. Am I supposed to use a server-side language like PHP or a

Sorting A List Of Songs By Popularity

江枫思渺然 提交于 2019-12-03 09:44:53
问题 For student council this year, I'm on the "songs" committee, we pick the songs. Unfortunately, the kids at the dances always end up hating some of the stupid song choices. I thought I could make it different this year. Last thursday, I created a simple PHP application so kids could submit songs into the database, supplying a song name, artist, and genre (from a drop-down). I also implemented a voting feature similar to Reddit's. Click an upvote button, you've upvoted the song, incremented the

Flooding Bayesian rating creates values out of range

淺唱寂寞╮ 提交于 2019-12-03 09:05:27
I'm trying to apply the Bayesian rating formula , but if I rate 1 out of 5 thousand of hundreds, the final rating is greater than 5. For example, a given item has no votes and after voting 170,000 times with 1 star, its final rating is 5.23. If I rate 100, it has a normal value. Here is what I have in PHP. <?php // these values came from DB $total_votes = 2936; // total of votes for all items $total_rating = 582.955; // sum of all ratings $total_items = 202; // now the specific item, it has no votes yet $this_num_votes = 0; $this_score = 0; $this_rating = 0; // simulating a lot of votes with 1