The fivestar widget settings are not being honored because of this line:

'style' => isset($node) ? 'average_combo' : variable_get('fivestar_style_'. $node->type, 'average_combo'),

So the $settings['style'] is always defaulting to the "average_combo" setting because the $node is always set.
So even when the variables fivestar_style_blog = "user_combo" or fivestar_style_story = "compact," then they're not taking effect.

I'm not exactly sure why you're checking to see if the node is set or not (for the admin widget theme preview?) -- but switching the TRUE / FALSE arguments above seems to fix it.

CommentFileSizeAuthor
fivestar_style_bug.patch907 bytesKentBye

Comments

marcoBauli’s picture

yep, same problem, same solution: patch does the job!

quicksketch’s picture

Status: Needs review » Fixed

Awesome thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.