Closed (duplicate)
Project:
Fivestar
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2012 at 16:04 UTC
Updated:
27 Feb 2014 at 08:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Jawni commentedAnyone to help me out here, guys?
Comment #2
Energyblazar commentedhello jawni...
I was just curious you said users can rate each other , is it that users can rate each other multiple times or just once ?
Also to stop user rating himself tryout using rules module.... i too am trying it out, if i figure out a possible solution ill post it, and if u do, please do post it too.
Thanks...
Comment #3
Timon Davis commentedAdded a permission to rate own content. Granting a role the 'rate own content' permission will allow them to rate their own content - otherwise they will be able to view the rating as normal, but they will not be able to edit it. This applies only to the fivestar widget that captures the votes on the viewing page. I chose this solution because it has a very simple implementation, and because it still gives the site administrator control over whether this functionality is desired or not.
To test this yourself
Comment #4
Timon Davis commentedUpdating Status.
Also forgot to mention this was developed against version 7.x-2.x-dev.
Comment #5
Timon Davis commentedComment #6
Jawni commentedHi guys, thanks for your answers. I had to solve it quickly at the time, so I ended up hiding, with javascript, the rating from the user's own page... I will test the patch in the next couple of days, thank you Timon Davis
Comment #7
swamiman commentedAnother work around that doesn't require a patch would be to use the field permissions module.
Comment #8
Energyblazar commentedThanks Sawmiman....
I have just installed this module....and went through this discussion--> http://drupal.org/node/1279712, to understand the working of the module.
But i am still not sure how this module is to be used....to stop user from rating themselves.
Can you please provide more information on how to think this module can stop user from voting/ rating themselves.
Just to let you know
I did this went to structure > content type > manage field > edited the Rate me field and changed the field visiblity and permission to custom.
Then unticked create own value for rate me field.
In comment form, i have added Fivestar field and user ref. field.
Now i dont want the user to comment, rate and reference the points to himself, and hence i wish to disable to user rating himself.
But what i did, would'nt work, am i missing something here ?
Comment #9
rameshbabu.g commentedApplied this patch...working fine..great
Comment #10
swamiman commentedSo I assume you are trying to keep users from rating themselves? I'm not sure how to use field permissions for user accounts instead of content types. You may try looking in Configuration > People > Account Settings > Manage Fields. If that works, otherwise I'm not sure if field permissions will do what you want. I used it to restrict access of a fivestar rating field to specific roles. I apologize if I sent you on a wild goose chase with the suggestion to use field permissions. Perhaps, it would be best to just use the patch submitted last week.
Comment #11
whiteph commentedSee Prohibit users from voting on their OWN nodes