00635: Star rating system

Summary: Star rating system
Created: 2006-01-07 06:30
Status: Closed
Category: Cookbook
Priority: 5554

Description: It will be nice to add some form of Five star rating system to PmWiki. I need this for rating articles in my wiki and this is also great addition for various blogs.

See implementation as recipe Cookbook.StarRater

Can you give an example of what you're looking for here? How would this typically be used by an author or administrator...?


It seems that something like the PITS system might work -- People could add their rating to the rating string on a page. Then the "page author" could update (probably manually in a crude version) some sort of page tag based on the rating string. Or perhaps the rating tag itself could be edited by the public.


I would love to see something like this. I’m trying to do reviews on my site and this is just the thing I need. I’d like something fairly basic, pretty much like a review on Amazon or such. A five-star rating with the possibly for half-stars. Or maybe allow an admin to create a any range and select any graphics for it. I’d like to be able to rate something on its own page, but to also have that rating show up in other pages, such as a summary or a search.

This would be really cool. For examples, one could look at this explanation of how to style the stars and this explanation of how to make it work using PHP and MySQL. Obviously it must be possible to skip the MySQL part and just use our page file metadata.

- JonHaupt

I would like a recipe for this.