• Can you please tell us the expected behavior of this?

    I just installed it and am not sure what it is supposed to look like. I see grayish star outlines with some weird overlapping numeric characters to the left. When I hover over a star, it and the ones to the left turn red and the weird numbers flicker and change. When I click on a star, the words (votes, avg.rating, %score), blink and then turn red, but the numbers all stay zero and the stars turn back to grey. Shouldn’t one of the stars turn yellow or stay red or something and the numbers change to indicate that I just voted?

    Also what is the meaning of “%score”? Normally on sites with ratings (like netflix) it shows stars and partial stars filled in to indicate what the rating is, and a different color to show that I have already rated it.

    Then I use a different browser (chrome vs firefox) and login as a different user but it won’t let them vote but instead it shows the yellow vote of the other user. More weirdness!

    So, I would like to get rid of those garbage numeric characters to the left and the very space consuming words (vote, avg rating and %score) to the right, and some clarification on what kind of stars I’m supposed to see when.

    Btw I’m using this code in a custom template file:

    $ratings = PostRatings()->getControl();
    echo "Ratings Tester";
    echo "<div id='sv-ratings'>";
    echo $ratings;
    echo "</div>";

    Thanks, Ron

    http://wordpress.org/extend/plugins/post-ratings/

Viewing 1 replies (of 1 total)
  • Thread Starter Ron Strilaeff

    (@ronstrilaeff)

    Ok I think I figured out most of this:
    – weird chars are stuck in there for accessibility but get formatted by css in a strange way. Easy to strip out of post-ratings-control.php
    – this css gets rid of the extra detail to the right of the stars without messing up any calculations

    .ratings .meta {
      display: none;
    }

    – the page needs to be refreshed to see what I rated. (I thought the ajax part of this plugin would make a refresh not necessary.)
    – the ip address and/or cookie determines if someone is eligible to vote, so I can’t test this with two users on the same computer. I will disable/modify that so it is at most one vote per post per userid (I only care to get votes from logged in users).

    Does anyone have an idea how I can show the partial stars instead of the %score so the display is more compact? In my application I don’t think I need the details of how many votes etc. Just a nice graphic to indicate how much the post or whatever is liked.

    One more thing, is there a way that a user can change their vote? Surely I’m not the only person to ever click on the wrong star or change my mind later.

Viewing 1 replies (of 1 total)
  • The topic ‘Need Better Documentation’ is closed to new replies.