Ratings: Half Stars and Custom Stars

Permalink
So I implemented my own custom stars, and it's fine and dandy when I use $rh->outputDisplay(90); but when I tried $rh->outputAverage('', 90), it messes up a bunch of the other stars on the page (see screenshots attached).

The one that looks good (4.5 stars) is using 90 passed in, and the other is using 0 (the broken one).

Any ideas?

2 Attachments

CWSpear
View Replies:
CWSpear replied on at Permalink Reply
CWSpear
Ok, I think it has to do with the first parameter.

I was leaving it blank on all my ratings, but I tried putting in a random number instead and everything seemed to work. The documentation says $rh->outputAverage($field, $value), but I don't know what $field is in the context.
cioclod replied on at Permalink Reply
I am also highly interested in something like this.
McCormick replied on at Permalink Reply
McCormick
Howdy, I haven't figured out how to display the average yet, though I have found a recent thread that likely sheds light on the root of the problem.

http://www.concrete5.org/developers/bugs/5-6-1-2/akhandle-is-being-...

I'll find a solution and post it here as soon as possible.