Active
Project:
Fivestar
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2008 at 03:05 UTC
Updated:
2 Apr 2016 at 09:35 UTC
Jump to comment: Most recent
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
Comment #1
RitterTristan commentedComment #2
RitterTristan commentedAfter 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.
Comment #3
RitterTristan commentedUpon 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.
Comment #4
barretr commentedYou need to include the following in page.tpl.php:
Comment #5
Sinan Erdem commented$styles and $scripts are not valid on Drupal7. What should I do to avoid dropdown instead of stars?
Comment #6
MGParisi commentedSame problem. Using Zero Point theme. Only happens in D7.21.
Comment #7
MGParisi commentedChanged Version numbers
Comment #8
bit.cyber commentedConfirmed. 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?
Comment #9
qwertmax commentedlooks 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'));Comment #10
shivamitakari commentedI 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.
Comment #11
MGParisi commentedCan you release a .PATCH
Thanks
Comment #12
kejmil commentedHello, 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?
Comment #13
justaman commentedchecked the console, displayed errors on jquery version, enabled jquery update and the issue is gone.
Comment #14
mrpauldriver commentedThis 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