Is it possible to have different widget set for different node types?

Also, which function should I call to get user rating, average rating and votes for a given node and user?

Comments

WeRockYourWeb.com’s picture

This is exactly what I'm looking for as well...

czeky’s picture

Hi, for me this is working..

1. fivestar widget is in the user profile page (using content profile module)
2. wanted to display this users profile rating + some other data from profile on every node created by this user..

global $user;
$account = user_load(array('uid'=>$node->uid));
$nodeprofile = content_profile_load('profile', $account->uid);
//print some of the cck fields..
print check_plain($nodeprofile->field_profile_whatever_cck_field[0]['value']);
//and finally the widget
print fivestar_widget_form($nodeprofile); 

now, just looking how to display only stars, without clickable widget

totaldrupal’s picture

Also looking for different widget set for different node types, is this possible?

Sotek’s picture

Hello,

can anyone tell me how to just display the static results as stars?

I have disabled the indiscriminate full content print on my nodes, so the stars do not appear anymore, and I would like to know the php command to display it.

By the way, users do not vote, only the author the node can (book reviews).

Thank you !

ericduran’s picture

Status: Active » Closed (won't fix)

You cannot have different widgets on any version of fivestar. In the future you will be able to do this for the drupal 7 version but there's already a issue for that.