Modify the ratings system Modify the ratings system
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Modify the ratings system

Started by Skallywag, May 29, 2006, 01:06:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skallywag

Can anyone recommend some code to modify the rating system, I want to retain the 5 star system , would like it to work as follows:-

Each star is worth 5 points

i.e. 1 star = 5 points, 2 stars = 10 points, 3 stars =15 points, 4 stars = 20 points and 5 stars = 25 points.

Therefore, when an image in the gallery recieve 5 votes of 4 stars it's points total = 100 points which would rate it above an image which has recieved 3 votes of 5 stars (which currently doesn't happen)

Many thanks in advance for your help