View iionly's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Hi iionly,
I have got 2 questions:
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.