-
How to create nice looking ranking system?
Hi,
I have some files, and want them to be ranked by users... How I can do something like in this site? HERE
There you can see stars, blue line and how many votes... Something like that would fit my needs
Thanks
-
-
What I would do is have a database looking like this:

And then, say since there are 4 votes for poll #1, I would get everyone that has 1 [true or yes], and do [number of votes for yes] * 100 / total votes, then have a div thats 100px and every percent counts as 1 px. So:
1: 50% ( 2 * 100 / 4 = 50)
2: 50% ( 1 * 100 / 2 = 50)
If you don't understand I can make you an example, also for the stars that would be 2.5 stars / 5 because:
1: 50% ( 2 * 100 / 4 = 50), 2.5 stars ( 5 * 2 / 4 )
2: 50% ( 1 * 100 / 2 = 50), 2.5 stars ( 5 * 1 / 2 )
-
-
Thanks, that is a good idea...
-
-
Need help, or do you completely understand?
-
-
I understood it nicely
But it looks like in the page stars are divided into 5 stars... its javascript or what?
-
-
Oh - the hover effect? Yes... this is javascript. I find this very cool: http://www.nickstakenburg.com/projects/starbox/ But it uses prototype. Search around google vote rating star scripts or something like that
-
-
whats the difference with prototype?
-
-
Maybe there is a way to do it without the prototype?
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks