elggx_fivestar modification v1.2

  • Hi! First of all, nice plugin. Ok, I wanted to place the ratings on the wire and also the videolist plugin, but I don't know how to do it. Would you please help me? Thanks!

  • Hi! Most credit goes for Divagater, I made some modifications and uploaded here!

    It's quite easy to add, just put the following code wherever you want:

    echo elgg_view("elggx_fivestar/elggx_fivestar", array('entity' => $vars['entity'], 'min' => TRUE));

    (the 'min' parameter is for minimalistic)

    So, in your case need to extend the object/thewire view, don't know which view should extend for videolist, but shouldn't be hard to find.


  • any images about this plugin. thanks so much.

  • You can find those in the original plugin:


    My contributions didn't change how it look!
  • @emdagon It worked on the wire. However, the ratings don't show at the river dashboard =(

  • Items at the river are not the same, its use another type of object (view).

    Also, you need to consider that some items are not related to an entity directly, so the stars can be a little bit confused for those cases.

    Anyway, if you look into elgg_view_river_item you'll see how the river shows the items and you be able to find the views you need to extend.  You can start from the river/item/wrapper view, which is the default view for river items =)

    Hope this help you!


    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier}


  • I cannot get this to work anywhere. The stars never show up.

  • @seeayeb, that's rare!

    Did you remember to enable it in the plugins list?

    Are you sure you included the "echo" sentence? remember that the elgg_echo doesn't print the view!

    A typical sentence for insert the stars into a view is:

    echo elgg_view("elggx_fivestar/elggx_fivestar", array('entity' => $vars['entity']);

    If you can't get it work, try giving me some extra details of your situation.


  • So how do i create a view for BuisnessDirectory mod? Any helping hand?

  • echo elgg_view("elggx_fivestar/elggx_fivestar", array('entity' => $vars['entity']));

    i just install this plugin without the original plugin and itworks well is their anyway i can change the size of the start or use different style inside your folder graphics.?

  • @caragadatacenter sure! you need to replace the view elggx_fivestar/basic with your own css ;-)



  • Hi!

    Gr8 plugin :)

    I'd like to ask, how to add stars to videolist plugin (watch sites), using and admin panel. I don't want to change the files, because if i stop use that plugin, i want just turn it off in admin panel, and i want all teh stars ratings to disappear, without any mistakes.

    In admin panel there are few types like:

    view=object/blog, tag=div, attribute=class, attribute_value=contentWrapper singleview, before_html=<br />

    This is the way how i'd like to built a ratings in my videolist plugin, but i'm not happy with it how to do it, and where are stored the informations (mysql propably)  like view, attribute_value


  • Hi, you say you added the metadata elggx_fivestar_average for personal needs,

    is it used by the plugin or can I remove it?

  • @fiftyeight I was planning to upload a different plugin that use that attribute, but at the moment the licence of that plugin doesn't allow it.

    You can remove that attribute.


  • Quick Question: Is it possible to get the  "most rated" objects?

  • @rjcalifornia that's exactly the elggx_fivestar_average attribute purpose =)


  • That works slick. :) Thanks.


    I did notice that in Tool admin>elgg_fivestar>settings>Change Fivestar Settings When Change Fivestar Settings is clicked it displays below, anything I missed?

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  • fixed it by changing permissions to 755 on 

    elgg_fivestar folder

    and  elgg_fivestar/admin.php

    Thanks for the extra eye Dhrup!

  • everytime I change settings and go to save, it says:  


    You don't have permission to access /action/elggx_fivestar/settings on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Please help -- I can add in the plugin anywhere,but I am not sure where to change the number of stars (manually).

  • hi, im new here, this works for me, but i just want to know if its possible to have a module that it will display the highest to lower ratings in a widget? please help i need it badly :)

  • @elggisthebest welcome to elgg! you can get the list sorted by rating with the following code:

    $list = elgg_get_entities_from_metadata(array(

    'type' => 'object',

    'order_by_metadata' => array('name' => 'elggx_fivestar_average', 'as' => 'integer', 'direction' => 'desc'),

    'limit' => 6



    Hope this help you.


  • @emdragon & elggisthebest: probably want to change that to elgg_list_entities_from_metadata to save extra coding. If you use get you need to define the layout with a foreach ($list as $li).

  • @emdragon: where will i write it or put it? step by step please coz im new to elgg. thanks a lot for your fast reply.


    @trajan: ill try both, but i dont know where will i put that codes.. help..


+8 years since I have been here! xD


  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 1114
  • Recommendations: 9

Other Projects

View emdagon's plugins