Download & Extend

Display widget on Comments based on role

Project:Fivestar Extra
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi, thanks you for this great module!

I have a question regarding the display of the Fivestar widgets on Comments and was not sure if this issue should be posted here or in the Fivestar issues.

Is it possible to only display the Fivestar widget below comments posted by a certain role. I am using Fivestar in a forum which contains posts by Teachers and Students. I would only like the widget to be displayed on comments posted by Teachers so students can vote on the answers posted by the Teachers indicating how useful they are.

I can prevent Teachers voting using the permissions, but Teachers will still be able to see the voting widget on comments made by Students. So I would like for the widget to be displayed only on Teacher comments.

Another reason I only need the widget on Teachers comments only, is because Students will be able to see the widget on comments made by other Students. This is not required as Students only need to rate answers by Teachers and not each other questions.

Is this possible to achieve? And please can someone provide me any guidance on how to do this this please?

Many thanks!