Hi,
it's about a node self templated.
If I write : print fivestar_widget_form($node);, for anonymous who have no permissions on fivestar or voting API, I still have the "cancel rating" link.
Hi,
it's about a node self templated.
If I write : print fivestar_widget_form($node);, for anonymous who have no permissions on fivestar or voting API, I still have the "cancel rating" link.
Comments
Comment #1
sahuni commentedSorry, first post is a bad question.
I would like to use fivestars to give rates to some nodes.
I would like anonymous to see that rating, but not to rate themselves. Is it possible with fivestar?
Comment #2
sahuni commentedWell I succeeded using a cck fivestar field and cck content permission.
But I don't know if it's possible with the simple rating
Comment #3
dpatte commentedIt is possible. This is my situation on Dance-Ottawa.com. And i didnt use content permissions. I think I used user permissions, but I'll check and get back to you.
Comment #4
sahuni commentedAnd?
Comment #5
dpatte commentedUnder admin user permissions, in the fivestar section, disable the 'rate content' for anonymous users. Works for me.
Comment #6
frenk commentedThis does not work for me.
Anonymous user can't vote, so they can't see colored stars :(
I wan't them to see the colored stars, but only allow them to vote when registered.
Why isn't there a way to do this..
Comment #7
YK85 commentedsubscribing - I also think it would be nice allow a setup where ratings are shown to anonymous users but they are not able to vote themselves unless they log in.
Comment #8
frenk commentedIs there no support for this module?
Comment #9
HollyJim commentedHi I made something with views but I am looking for a clean and easy solution because this one seems to me heavy stuff for something I believe should be simple (well not for me beacause I can't code!)
Here is what I did.
Anonymous users can't rate content.
I created a region in my node.tpl.php (it was not for this purpose but my 'fivestar rate this node block' is displayed in this region) but if you don't allow voting for all nodes, I guess you need to create a custom node-your-content-type.tpl.php
Go to admin/content/node-type/your-content-type to activate Fivestar but Hide its display so it is only displayed in the block.
Create a node view as a block
Add a relationship - 'Node : Vote results' with filters : 'percent', 'Normal vote' and 'Average vote'.
Add field '(Vote results) Vote results : Value'
Choose 'fivestar static'
If you want you can check 'Rewrite the output of this field ' to write something using replacement patterns like:
[value]<a href="/user/register?destination=node/!1">Register to vote</a>Add an argument 'Node : Nid' - provide Default argument : Node id from URL
Save the view
Go to admin/build/block and display the new block in the same region where 'fivestar rate this node block' is displayed and display this new block only for anonymous user.
This works for me, I am not happy with this but I have been looking everywhere to find a better solution.
Comment #10
Weka commentedWhat are your settings in the Direct rating widget section?
Comment #11
summit commentedHi,
With the rate content permission for Anonymous user unchecked....the anonymous users only see gray stars and not filled in stars...will investigate more.
Greetings, Martijn
Comment #12
whiteph commentedSorry, Drupal 6 is end of life, and is no longer supported.