I am using some code that I found on here that allows ratings numbers to be displayed as stars in the Ratings column.
$if(%rating winamp%,$repeat($char(10032),%rating winamp%),$if(%rating wmp%,$repeat($char(9733),%rating wmp%),$if(%rating mm%,$repeat($char(10026),%rating mm%),$repeat($char(10061),$if2($ifgreater($regexp(%popularimeter%,'^.+\|(\d{1,3})\|\d+',$1),196,5,$ifgreater($regexp(%popularimeter%,'^.+\|(\d{1,3})\|\d+',$1),128,4,$ifgreater($regexp(%popularimeter%,'^.+\|(\d{1,3})\|\d+',$1),64,3,$ifgreater($regexp(%popularimeter%,'^.+\|(\d{1,2})\|\d+',$1),1,2,$ifgreater($regexp(%popularimeter%,'^.+\|(\d)\|\d+',$1),0,1,))))),0)))))
It works very well, but I would like to limit the maximum number of stars to 5, and display a message in the column if a number greater than 5 is entered into the ratings field (to warn that it is an invalid value).
I wouldn't know how to add any extra code to the complicated code above without breaking it, so I would appreciate some help. Thanks.