rating-system

Database design for a rating system

The application handles users and objects, users rate objects with 3 features (one rate per feature). EDIT: the last sentence is unclear : by features I mean criterias shared by all the objects How efficiently design a database for such a system ? What are the best-practices for designing a database dealing with a rating system ? wha...

Standard ratings for code smells?

It occurs to me (as I'm reviewing some old code) that there may be a standard way of rating code smells and I'm just not familiar with it. To be clear: I'm familiar with a few taxonomies of code smells, what I'm looking for is a standard rating system for code smells. (Where one would be able to fairly objectively state that one piec...

How should I design my rating system?

I'm building a website where users may register and create shopping guides. I want to award them points for creating shopping guides, adding stores and adding brands. It will also be possible for other users to rate the shopping guide. I'm considering to award the owner of the shopping guide more points, if the guide is rated high. But...

Thumbs system on Urban Dictionary

I was thinking of implementing a thumbs system, but mine would require a registration thus ruling out the possibility of people voting more than once unless they create a new account to do so. So I was wondering about Urban Dictionary's thumb system. How does it work? I would imagine that my IP would be stored in a database, so people wo...

Any way to compress this jquery 5 star rating function?

I'm trying to shrink this down... but can't figure out a way to do it. Basically am wondering if theres any way to compress it down to 5 lines or so?? Thanks for your help! $(function() { $('.star-one').live("click",function() { $("#rate_result").html('1'); $("#star1").html('<img src="http://larsonreviews.com/rating/star_ena.gif" borde...

Allowing redundant data in the DB for the sake of performance

Let's say you're designing the DB schema for the next stack overflow and more specifically the part of the schema that handles question ratings. I assume you'd use a table like: ratings(question_id, user_id, rating) ... that will both record ratings and make sure no user votes twice on the same question. That table alone could handle r...

How to pass hidden parameters in "link_to"

Is there a way to pass parameters with a link_to call without it showing up on the URL? I'm making a simple star-rating system, and I'm basically making each star an image link that passes its value as a parameter to a new rendering of the same page. The helper code looks like this: def stars_generator(edit_mode = false) @rating = pa...

How to build a basic and simple 5-star rating system?

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 client-side one like Javascript (w/ JQuery). Looking around it...

Athletic Result Rating System

I'm trying to develop an alternative rating system for athletic results. We're all aware of the traditional first past the post rating system for races. Think of the 100m final in the Olympics. First gets gold, second silver, etc. This system only benefits the top three. In my system, there is a series/league of races, where all eight ...

WordPress GD Star Rating - Review next to Comment

Does anyone know how to program it such that a user's rating gets attached to his comment, rather than independently? I'm attempting to program or set this in GD Star Rating for Wordpress ...

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 X number of days, I will be generating a "chart" of the most popular videos. So my questi...

PHP is not returning me a number type

Hello, i tryed to follow that great tutorial (STAR rating with css : http://stackoverflow.com/questions/1987524/turn-a-number-into-star-rating-display-using-jquery-and-css) but i've just a big problem : When i do <span class="stars">1.75</span> or $foo='1.75'; echo '<span class="stars">'.$foo.'</span> the stars is correctly sh...

Rating the Application in iphone

i am trying to build a ratings alert inside my iPhone application which I want to make it look similar to the alert view, when the application is going to be delete.But i would like to make the rating by pressing the button it should send my rating to the itunes. is it possible? Thanks in advance! ...

How to handle product ratings in a database

Hello, I would like to know what is the best approach to storing product ratings in a database. I have in mind the following two (simplified, and assuming a MySQL db) scenarios: Scenario 1: Create two columns in the product table to store number of votes and the sum of all votes. Use columns to get an average on the product display pag...

Rating System Database Structure

I have two entity groups. Restaurants and Users. Restaurants can be rated (1-5) by users. And rating fromeach user should be retrievable. Resturant(id, name, ..... , total_number_of_votes, total_voting_points ) User (id, name ...... ) Rating (id, restaurant_id, user_id, rating_value) Do i need to store the avg value so that it need no...

Player rating for game with random teams

I am working on an algorithm to score individual players in a team-based game. The problem is that no fixed teams exist - every time 10 players want to play, they are divided into two (somewhat) even teams and play each other. For this reason, it makes no sense to score the teams, and instead we need to rely on individual player ratings....

Bayesian rating system with multiple categories for each rating

I'm implementing a rating system to be used on my website, and I think the Bayesian average is the best way to go about it. Every item will be rated in six different categories by the users. I don't want items with only one high rating to shoot to the top though, which is why I want to implement a Bayesian system. Here is the formula: ...

How to create rating system in JSP?

I'm doing one litle project with JSP for topic Library. I want to create a rating system for books in library when end-user view detail of book and rating for this book. Can anyone give hints or tutorials how to go about this? ...

Sorting A List Of Songs By Popularity

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, a...