Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 12-16-2008, 09:53 PM   #1 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 16
OS: Windows Vista Service Pack 1


Rating formula - HELP!!

Hi,

I am trying to make a rating system but I am not sure of the formula to use to show the average rating/overall rating. The user can rate anywhere from 1 to 5. If anyone knows I would be very grateful.
Moatist is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-01-2009, 07:57 PM   #2 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 715
OS: Linux Mint 7

My System

Re: Rating formula - HELP!!

Who will be rating? Anonymous users or people who have to login to their account before they can rate?

Regardless, at the basic level...you add all of the votes up and then divide by the amount of votes. So if there are 24 votes that add up to 72, the average rating is 3.

Once you post a little more specifics about how you want to do it...I'll try to scrounge up some old code I made for a rating system on a video game file website. It's not that hard...and is a pretty nifty feature.
__________________
Free Resources
PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |
Web Design/Programming - KompoZer
(Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting |
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-01-2009, 08:07 PM   #3 (permalink)
Registered User
 
Join Date: Dec 2008
Posts: 16
OS: Windows Vista Service Pack 1


Re: Rating formula - HELP!!

Thanks a lot! It would be great if you could post your code.

Users do not have to log in first, but if your script has that support go ahead and post it, I may have need for it in the future.

I am not to picky about how it should look as far as HOW the user rates. What I mean by this is that users can rate by a dropdown menu or by selecting stars. Also, the average rating can be displayed by a level-bar or stars.

Does your script have IP support?(So that users can rate only once per page).Oh, and by the way: I would prefer it if the ratings were stored in a text file vs. a mySQL database.

I can make changes to the code if need-be, don't worry about it being perfect.

Thanks,
Moatist
Moatist is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 06:31 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85