Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - rating system
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

rating system

 Post Reply Post Reply
Author
Bborg View Drop Down
Newbie
Newbie
Avatar

Joined: 24 April 2003
Location: Portugal
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bborg Quote  Post ReplyReply Direct Link To This Post Topic: rating system
    Posted: 07 September 2003 at 3:23pm

Hi!

  i want do a system to list my downloads with filename, filesize, date, comments and user rate. i already have the code to list my files with filename, filesize and date, but i dont know exactly what i need to include the comments and the user rate. have ideas?

Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2003 at 9:12pm

You would need a form where people can input a comment, and a drop-down box or radio buttons for people to select a rating. Then save this to a database, and then display it in the appropriate place.

To actually calculate the rating, you might want to try "average rating * log10(number of votes)", so that it is more accurate when few people have rated it.

Blair

Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
Bborg View Drop Down
Newbie
Newbie
Avatar

Joined: 24 April 2003
Location: Portugal
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bborg Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2003 at 11:07am

b_bonnet, thanks by your help

just a note; i dont need 10 options to rate... i want a very simple sysitm; just to say if the file have more porcent of coovotes or badvotes.

about the database and form; i have already all this done on my database and listing on page; i have "rate+" and "rate-" on database, and on myform it works like <% "rs.rate+" = "rs.rate+" + 1 %> and <% "rs.rate-" = "rs.rate-" + 1 %> ... but i dont know how to calculate tha rate+ and rate- to list the porcentage of rate+ and rate-... do you know how to do this? any more sugestions? thanks for all...

Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2003 at 5:03pm

The following should work out what percentage of users have voted rate+ and rate-:

lngTotalVotes = "rs.rate+" + "rs.rate-"
lngRate+Percentage = (CInt((("rs.rate+" * 100) / lngTotalVotes) * 100)) / 100
lngRate-Percentage = (CInt((("rs.rate-" * 100) / lngTotalVotes) * 100)) / 100

Hope this helps,
Blair

Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
Bborg View Drop Down
Newbie
Newbie
Avatar

Joined: 24 April 2003
Location: Portugal
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bborg Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2003 at 11:19pm

uowwww... my god... "rate+" * 100 / "rate+" + "rate-" * 100 / 100 ... its very big confuzion to my mind...

im working now, but i will try this on this saturday, then i tell if it work.

thanks b_bonnett

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.