[Elgg 1.8-1.12 & 2.X & 3.X: Elggx Fivestar] v1.8.1

Release Notes


  • Adding/removing views via the plugin settings page should work now. It was necessary to move the plugin settings to the "Administer" - "Utilities" section as the Elgg core save button added automatically on pages in the "Configure" - "Settings" section failed to keep the content of the views array. When upgrading please remove the old Elggx Fivestar folder before copying the files of the new version on your server.

There are some default views defined where the voting widget will appear on your Elgg site. If you want to change the configuration, remove the voting widget from certain views or add it to others, please read README.txt for instructions on how to proceed.

  • I keep trying and trying, but still dont know how to activate it in a module, can you Pm me? Thx

  • @Spike: what plugin/page you want to add the rating widget to? Without more information I can't be more specific than in the explanation above unfortunately.

  • Hi, this is great

    how can I add rating to comments?

  • Hi, this is great, i am from Brazil, thanks a lot....Can you explain to me(step-by-step please), how do I do for groups? no Groups discussion, only for Groups! Thank you!

  • Sorry, really sorry for the delay. I want to add it to Market plugin.

  • @waxzy:

    Sorry, it won't be possible to add ratings to comments. In Elgg's data model comments are annotations to entities. The rating widgets can only be added to entities unfortunately.

    @Jose Rocha:

    I've tried to figure out how to add a rating widget to groups (in the group listing view), but so far I've failed. The groups are slightly different in Elgg's data model, i.e. the group entities are of type "group" while the other stuff like blogs etc. are of type "object". The object entities also have a subtype that is used by the rating widget to select the correct position to add the widget. So, in case of groups the normal way to add the rating widget fails. Sorry.

    @Spike Spiegel:

    For the market plugin you can add ratings by adding the following lines in Elggx Fivestar's start.php in the function elggx_fivestar_defaults():

    elggx_fivestar_view=object/market, tag=div, attribute=class, attribute_value=elgg-content, before_html=<br />
    elggx_fivestar_view=object/market, tag=div, attribute=class, attribute_value=market elgg-content, before_html=<br />

  • anyway to make the ratings results anonomys to everyone but the administrators?

  • Some update to what I wrote in the PM to you just a few minutes ago:

    It's possible to make the votes invisible:

    1. Change in views/default/elggx_fivestar/voting. Replacing the line

    $rating = elggx_fivestar_getRating($guid);


    if (elgg_is_admin_logged_in()) {
        $rating = elggx_fivestar_getRating($guid);
    } else {
        $rating = array('rating' => 0, 'votes' => 0);


    2. Do the same in actions/rate.php. Again replace the line

    $rating = elggx_fivestar_getRating($guid);


    if (elgg_is_admin_logged_in()) {
        $rating = elggx_fivestar_getRating($guid);
    } else {
        $rating = array('rating' => 0, 'votes' => 0);


    You can modify the result display slightly in case you want to show at least the number of votes by replacing the line instead with (actually just adding the additional if-clause):

    $rating = elggx_fivestar_getRating($guid);
    if (!elgg_is_admin_logged_in()) {
        $rating['rating'] = 0;


  • This is working perfectly.  You are awesome!  Thanks!!

  • 32 days later...

    He comes back and say:

    Thank you very much, I'll test it. :D


  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2020-8-23
  • Downloads: 10699
  • Recommendations: 31

Other Projects

View iionly's plugins