Hi,
I've associated fivestar widget with user profiles.
On node view page I want to show node author's(user) fivestar rating widget.
How can I do it.

I ve already done following on my end.

On node.tpl.php

 $user = user_load($node->uid);
 $profile = profile2_load_by_user($user,"main");
// The profile array above contains fivestar_field but its not showing any rating value . So I used the voting api function to get the data
 $reliability_rating = votingapi_select_results(array('entity_type' => 'profile2' , 'entity_id' => $profile->pid, 'value_type' => 'percent', 'tag' =>'Betrouwbaarheid', 'function' => 'average'));

I'm able to get user's rating in $reliability_rating array But Im not sure how to print this data as fivestar widget

Thanks