WordPress.org

Ready to get started?Download WordPress

Forums

microformat hReview - how to make "half-stars"? (4 posts)

  1. sfam
    Member
    Posted 8 years ago #

    I have integrated the hReview structured blogging microformat into my blog. I am only using the hReview for movie reviews, but I find the 5 star rating constaining. Preferably, I would like to have half stars as well to allow a rating of 3.5 stars, for instance; or worse case, a 1-10 rated scale.

    Has anyone modified the hReview like this, or does anyone know where I'd go about making the change?

    Thanks!

  2. sfam
    Member
    Posted 8 years ago #

    Bump...is anyone using the structured blogging stuff?

  3. Arlo
    Member
    Posted 8 years ago #

  4. sfam
    Member
    Posted 8 years ago #

    Hi Arlo, Thanks. I was actaully trying to get this working in the structured blogging plugin using the hReview format. I did figure out how to get the 1 - 10 stars working. This is specified in the "mc_renderers.php" file. If anyone is looking to do this, find this code snippet from the mc_renderers.php file:

    $min = empty($min) ? 0 : intval($min);
    $max = empty($max) ? 5 : intval($max);

    and switch it to this:

    $min = empty($min) ? 1 : intval($min);
    $max = empty($max) ? 10 : intval($max);

Topic Closed

This topic has been closed to new replies.

About this Topic