This plugin adds a shortcode tag that will display a rating in one of several formats. Here is a
feature breakdown:
- Input ratings as a fraction (4/5) or a percentage (80%).
- Use any amount of stars from 2 to 100.
- Set the minimal star fraction allowed, whole, half or quarter.
- Split multiple ratings in one post/page into groups, and have a separate overall rating
calculated for each.
- Display the rating as image stars, text stars, a percentage, a fraction, or any combination.
- Multiple star image sets included, others can be easily added.
- Fully templatized output, use whatever tags you want.
- Optionally group ratings in a table or other structure.
- Settings page for global settings and tag defaults.
The only required parameter is rating, the rest are optional. Here is a basic example.
[xrr rating=4/5]
This will convert the 60% into a fraction and display it as text stars:
[xrr rating=60% display_as=textstars]
This will display 10 stars from the tinystar image set and label the rating 'Movie Rating:':
[xrr rating=7.25/10 imageset=tinystar label="Movie Rating:"]
Check the Tag Options section for complete options.
The global settings on the settings page are documented there.
1.3.1
- Fixed a harmless error message that could sometimes appear on the settings page.
- Added the ability to always show the decimal place on a fraction.
1.3
This is mainly an update to the admin side, although I added a few more imagesets.
- Plugin now searches for locations of imagesets in the plugin directory and in the uploads/xavins-review-ratings directory.
- Image extension is also auto-detected now.
- Removed the Image Path setting since it is now redunant.
- Removed the Image Extension setting since it is now redundant.
- Templatized the
<img> tag, all html is now templatized
- Added documentation of the settings page for the templates.
- Added reset to defaults button.
- Detected imagesets now appear on the settings page.
- Added three new imagesets.