b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Releases
  • Skins
  • Plugins
  • Locales
 
  • « Adjust Headings Plugin
  • Polls Plugin »

Star Renderer Plugin

Categories: Renderer Plugins, 5.x, Bundled plugin
Bundled plugin: If you're using a b2evolution version that supports this plugin, it is already in your plugins folder. There is no need to download it. If it is not installed yet, simply click "Install new" in your plugin list.
Star Renderer Plugin

This plugin allows the use of [stars:] short tag to render star ratings inside collection posts and comments.

Author
Last tested in version

Syntax

[stars: Number of stars /Total stars ]

  • Number of stars: specifies the star rating. This accepts a decimal number between 0 and the total number of stars (max. of 5).
  • /Total stars: specifies the total number of stars to display. Valid value is from 1 up to a maximum of 5 and should be prefixed with a /. If not specified or is >5, the parameter will default to /5.

Samples

  • [stars:4] - displays 4 yellow stars and 1 grey star for a total of 5 stars
  • [stars:2.5] - displays 2.5 yellows stars and 2.5 grey stars for a total of 5 stars
  • `[stars:1/3] - displays 1 yellow star and 2 grey stars for a total of 3 stars
  • [stars:3.25/4] - displays 3.25 yellow stars and 0.75 grey star for a total of 4 stars
  • [stars:8] - displays only 5 yellow stars
  • `[stars:4/3] - displays only 3 yellow stars
  • [stars:2.4/4.5] - will not be rendered as the total stars is not an integer.

Per Collection Settings

Star Renderer Plugin
  • Apply rendering to posts: how the content of the post will be rendered by the plugin (for more information about apply rendering, please read: )
  • Apply rendering to comments: how the comments will be rendered by the plugin (for more information about apply rendering, please read: )
Tags: 6.10.7

No feedback yet


Form is loading...

Plugin Repository

Plugins are little PHP scripts that allow you to add features that are not (yet) built into the b2evolution core.

How to...

  • Introduction to Plugins
  • How to install a plugin (after downloading it)
  • How to make a new plugin
 Upload a plugin!
Submit your own plugin

User log in

Lost your password?
Register »

Search by keyword

Filtering options

Retain only results that match:

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
What is RSS?

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque