Download & Extend

Different fivestar widget display for different node types

Project:Fivestar
Version:6.x-1.13
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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

#1

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

#2

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

<?php
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

#3

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

#4

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 !

#5

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.