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

sahuni’s picture

Title: cancel rating appears for custom node template » anonymous must see rating but must not vote. Possible?

Sorry, 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?

sahuni’s picture

Well I succeeded using a cck fivestar field and cck content permission.
But I don't know if it's possible with the simple rating

dpatte’s picture

It 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.

sahuni’s picture

And?

dpatte’s picture

Under admin user permissions, in the fivestar section, disable the 'rate content' for anonymous users. Works for me.

frenk’s picture

This 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..

YK85’s picture

subscribing - 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.

frenk’s picture

Is there no support for this module?

HollyJim’s picture

Hi 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.

Weka’s picture

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?

Yes it is. With the rate content permission for Anonymous user unchecked, unauthenticated users can see the rating, but cannot vote.
What are your settings in the Direct rating widget section?
summit’s picture

Hi,
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

whiteph’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Sorry, Drupal 6 is end of life, and is no longer supported.