[Elgg 1.8-1.12 & 2.X & 3.X: Elggx Fivestar] v2.3.1

Release Notes

  • Updated attribute_value of default Fivestar rating views to match the class names modified on Elgg 2.3 compared to previous versions of Elgg.
  • Hi iionly,

    I have got 2 questions:

    1. Is it possible to add a vote of 0 ? It seems that the UI doesn't allow it...
    2. Is it possible to remove a vote? I noticed that there is some code to remove an annotation in elggx_fivestar_vote() function, if vote is set to 0. But I don't know how to make it happen...

    These 2 questions may be related... The code found to remove an annotation in elggx_fivestar_vote() function, let me think that case n°2 has been implemented one day, maybe it has been removed or there is a bug somewhere...

    Best regards,

    oseg

  • Adding a vote of 0: I don't think there's any easy way to implement that. For one thing, the fivestar UI is not capable of handling this case and the fivestar plugin code is also not able to handle it.

    Removing a vote: the code in the elggx_fivestar_vote() function you are referring to had been there already when I had taken over the maintenance of the fivestar plugin. Most likely, the original coder had the removal of a vote feature in mind originally. But it was never fully implemented and never working at all. Again, the fivestar voting UI is currently not supporting this case and would have to be modified to support the removal of a vote (and not only the change of a vote which is possible).

    While the 0 star voting would be quite complicated to add, the vote removal should be easier. Though I have currently no time/no intention to add this functionality.

Stats

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

Other Projects

View iionly's plugins