Any help with this issue is greatly appreciated.

I've installed:
Fivestar 5.x-1.12
VotingAPI 5.x-1.6

The static display of Fivestar works fine, both on the nodes themselves and as part of lists. However, on nodes where actual voting is done, the nice graphics with the rollovers do not appear. Instead, a simple drop down menu box with the text labels appears, along with a classic HTML button labeled 'vote'.

This error is happening with IE, Firefox and Safari, which seems to point to a configuration problem. After hours of trying to isolate the problem, I'm inquiring here for help from those more experienced.

Thanks again!
Tristan

Comments

RitterTristan’s picture

Status: Postponed (maintainer needs more info) » Active
RitterTristan’s picture

After more testing, I've discovered the issue is specific to a theme. When I change themes, the widget works fine throughout.

What would be contained in a theme to affect the widget not showing in a node? I suspect the theme is shutting off javascript somehow.

RitterTristan’s picture

Status: Active » Closed (fixed)

Upon extensive testing, it appears the theme I was using had issues with Fivestar. Since Fivestar runs splendidly in other themes, I will consider this an issue with the theme I was using and not Fivestar and close this issue.

My suggestion for folks with similar issues, try a different theme.

barretr’s picture

You need to include the following in page.tpl.php:

<?php print $styles ?>
<?php print $scripts ?>
Sinan Erdem’s picture

Status: Closed (fixed) » Active

$styles and $scripts are not valid on Drupal7. What should I do to avoid dropdown instead of stars?

MGParisi’s picture

Same problem. Using Zero Point theme. Only happens in D7.21.

MGParisi’s picture

Version: 5.x-1.12 » 7.x-2.x-dev

Changed Version numbers

bit.cyber’s picture

Confirmed. I'm running the following:
drupal 7.22
fivestar 7.x-2.0-alpha2

The graphic with rollover works fine for a field in the main section of the node (the rollover functionality of course only works if enabled to do so). However for a fivestar field in the comment section, I can only get a drop down list. It doesn't seem to matter what the settings are.

(I'm not sure whether this is a theme related issue, but I'm not knowledgeable enough to make a judgement.)

Any help would be appreciated! Is it as simple to include the styles and scripts per #4? How does one do this for a drupal 7 site?

qwertmax’s picture

looks like you have some ajax - witch call you fivestar widget.
if yes, you need to add into you js next code:

Drupal.attachBehaviors(jQuery('#id-of-your-ajax-content'));

shivamitakari’s picture

I was also facing the same issue.
It was showing drop down list of node(content) page instead of stars.
For me its happening because of js conflicts.
we have 2 JS files in fivestar module fivestar.js and fivestar.ajax.js
and in views module we have ajax_view.js which is added in theme.inc as [ views_add_js('ajax_view');]
here fivestar.js getting conflicted with jax_view.js
to solve the issue I have altered the js on content pages where I want to show the rating
code to alter the js :
put this code in template.php

function THEME_NAME_js_alter(&$javascript) {
$node = node_load(arg(1));
if($node->type=='CONTENT_TYPE') {
unset($javascript['sites/all/modules/contrib/views/js/ajax_view.js']);
}
}

Here replace THEME_NAME with your currently enabled theme and CONTENT_TYPE with name of content type or node type on which you want to display the fivestar rating.

MGParisi’s picture

Can you release a .PATCH

Thanks

kejmil’s picture

Hello, I have the same issue and change in template.php did not help to me.
Trying long time and no solution.

Would be any patch or other solution by chance, please?

justaman’s picture

Issue summary: View changes

checked the console, displayed errors on jquery version, enabled jquery update and the issue is gone.

mrpauldriver’s picture

Category: Support request » Feature request

This seems not to work with jQuery update 1.8. I enabled jQuery 1.7 and the problem vanishes, but the trouble is this breaks other functionality on my sites.

Feature request. Please make Fivestar compatible with more recent versions of jQuery