Log in

Stats

  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2010-12-15
  • Downloads: 684
  • Recommendations: 8

Releases


Previous releases:

Other Projects

View emdagon's plugins

elggx_fivestar modification for Elgg 1.7

Divagater's elggx_fivestar improvements

Last updated 1217 days ago

Just made some modifications to the original* plugin for performance and utility purposes.

The original version (1.0.6) gets all "fivestar" annotations for every entity related to fivestar, I just save the needed information at rate time as metadata and then use it instead.

Hope this help in somehow.

* http://community.elgg.org/pg/plugins/project/385091/developer/divagater/fivestar

Note: I added an entity variable named "elggx_fivestar_average" for personal needs.

 

Comments

  • rjcalifornia 1216 days ago

    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!

  • emdagon 1216 days ago

    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.

    Cheers!

  • lina nguyen 1215 days ago

    any images about this plugin. thanks so much.

  • emdagon 1215 days ago

    You can find those in the original plugin:

     http://community.elgg.org/pg/plugins/project/385091/developer/divagater/fivestar

    My contributions didn't change how it look!
    Cheers!
  • rjcalifornia 1215 days ago

    @emdagon Thanks pal! I'll try it!

  • rjcalifornia 1214 days ago

    @emdagon It worked on the wire. However, the ratings don't show at the river dashboard =(

  • emdagon 1214 days ago

    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!

    Cheers! 

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

     

  • inventionary 1213 days ago

    Thanks @emdagon, it works great!

  • seeayeb 1209 days ago

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

  • emdagon 1209 days ago

    @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.

    Cheers!

  • martinez 1171 days ago

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

  • caragadatacenter 1142 days ago

    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.?

  • emdagon 1142 days ago

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

    Cheers!

     

  • madox 1132 days ago

    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

    Brgds

  • fiftyeight 1094 days ago

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

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

  • emdagon 1094 days ago

    @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.

    Cheers!

  • rjcalifornia 1094 days ago

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

  • emdagon 1094 days ago

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

     

  • iconMatrix 1055 days ago

    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.

  • iconMatrix 1055 days ago

    fixed it by changing permissions to 755 on 

    elgg_fivestar folder

    and  elgg_fivestar/admin.php

    Thanks for the extra eye Dhrup!

  • Jeremy Leyden 1046 days ago

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

    Forbidden

    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).

  • elgg101 1045 days ago

    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 :)

  • emdagon 1045 days ago

    @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.

    Cheers!

  • Trajan 1045 days ago

    @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).

  • elgg101 1045 days ago

    @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..