The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
10 Star Rating System - JS
Hello,
I am trying to do a 10 Star Rating System and I don't see a lot of resources out there for this. I have found several free versions of 5 Star Rating Systems, or cheap like $5 versions. But I really want to edit the code to 10 Star Rating System. So if I take a look at this code: Code:
<%= number_with_precision(asset.rating, 1) %>/5 Stars<br> <ul class='star-rating'> <li class='current-rating' style='width:<%= (asset.rating * 30).to_i -%>px;'> Currently <%= number_with_precision(asset.rating, 1) %>/5 Stars. </li> <li> <%= link_to_remote( "1", {:url => { :controller => "rating_demo", :action => "rate", :id => asset.id, :rating => 1}}, :class => 'one-star', :name => '1 star out of 5') %> </li> <li> <%= link_to_remote( "2", {:url => { :controller => "rating_demo", :action => "rate", :id => asset.id, :rating => 2}}, :class => 'two-stars', :name => '2 stars out of 5') %> </li> <li> <%= link_to_remote( "3", {:url => { :controller => "rating_demo", :action => "rate", :id => asset.id, :rating => 3}}, :class => 'three-stars', :name => '3 stars out of 5') %> </li> <li> <%= link_to_remote( "4", {:url => { :controller => "rating_demo", :action => "rate", :id => asset.id, :rating => 4}}, :class => 'four-stars', :name => '4 stars out of 5') %> </li> <li> <%= link_to_remote( "5", {:url => { :controller => "rating_demo", :action => "rate", :id => asset.id, :rating => 5}}, :class => 'five-stars', :name => '5 stars out of 5') %> </li> </ul> http://www.naffis.com/2006/8/31/rail...-rating-system Why can't I change the 5 stars out of 5 to like 5 stars out of 10, 6 stars out of 10, etc.??? Will this code actually work for me, or what that person posted on that page? |
#2
|
||||
|
||||
Five Stars and Top Ten aren't 2 different popular systems?
|
#3
|
||||
|
||||
What?
Trying to do 10 stars instead of a 5 star system. --------------- Added [DATE]1208401243[/DATE] at [TIME]1208401243[/TIME] --------------- Anyone? |
#4
|
||||
|
||||
Anyone?
--------------- Added [DATE]1208553442[/DATE] at [TIME]1208553442[/TIME] --------------- NEVERMIND - Found the information I needed finally. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|