#162

Product support

Get help in the plugin support forum.

Categories

  • Miscellaneous
  • Social

Ranking tool for articles

This plug in adds a ranking tool to a RainLab Blog article

The plugin uses the Kartik Visweswaran ranking tool (https://github.com/kartik-v/bootstrap-star-rating) and storage the rank and votes number in a separate table in the database.

You can customize the symbol used for rank choosing between stars, thumbs up and fire icon without write any code, just change the preferences in the component when it's added on your page.

If you have a lot of articles in this moment, don't worry, the plugin detects old articles and automatically adds a new rank for them (5 stars) For the new articles, the rank is created at the same time the article is created.

If you need change the rank, for example, reset to 5 again, you can do it in the editing the post, in the tab "Ranking"

Requirements

Use it is pretty simple.

  • Just add the component to the page where displays the blog content (usually /blog/post/:slug)
  • Customize if you want the symbol used for the rank (stars, hearts, fire or thumbs up) and the tool size

Adds

{% component 'SetRank' %}

where you want the tool be displayed

And that's all!


The plugin injects the JS and CSS files needed automatically, so, you don't need to worry about download and install anything more

  • Found the plugin useful on 26 Jul, 2016

    Thanks ioCare for the tip, your fix works on Linus :)

  • Found the plugin useful on 3 Feb, 2016

    Dear developer, addJs and addCss line in component/SetRank.php will not work properly on Linux as path you specified is case sensitive.

          $this->addJs('/plugins/PolloZen/RankPost/assets/js/star-rating.min.js');
          $this->addCss('/plugins/PolloZen/RankPost/assets/css/star-rating.min.css');

    I've corrected above lines to:

          $this->addJs('/plugins/pollozen/rankpost/assets/js/star-rating.min.js');
          $this->addCss('/plugins/pollozen/rankpost/assets/css/star-rating.min.css');

    and it started working!

1.0.2

Creacion de tabla Rank

Jan 27, 2016

1.0.1

First version of RankPost

Jan 27, 2016