Active
Project:
Fivestar Extra
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2009 at 21:31 UTC
Updated:
27 Jul 2009 at 21:20 UTC
Hi,
I will use the fivestarextra module on custom profile.
How do I have to use the function
print fivestarextra_widget_form(&$form_state, $content_type, $content_id):
Can anybody explain me what the variables stand for?
function fivestarextra_widget_form(&$form_state, $content_type, $content_id) {
global $user;
$votes = fivestar_get_votes($content_type, $content_id);
$values = array(
'user' => isset($votes['user']['value']) ? $votes['user']['value'] : NULL,
'average' => isset($votes['average']['value']) ? $votes['average']['value'] : NULL,
'count' => isset($votes['count']['value']) ? $votes['count']['value'] : NULL,
);
thx
mathias
Comments
Comment #1
Richard Blackborder commentedI think you might find this is what you are looking for:
#483738: Showing the user rating widget in places other than the user profile.
Comment #3
TapSkill commentedI have to reopen this because I now require the answer as well.
I need to figure out a way to display the user's average rating without the ability to vote on the rating (for disabling the ability to vote on yourself), and this code does not work:
Commented out code is there because I was trying a lot of methods I found or thought up, but nothing has worked.
Comment #4
TapSkill commented