Closed (fixed)
Project:
jRating
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jan 2007 at 23:56 UTC
Updated:
9 Feb 2007 at 17:00 UTC
I've downloaded and installed following instructions for 5, with new versions of Views, VotingAPI. Documentation for JRating speaks of replacing modules/views/votingapi/votingapi_views.inc with a file in the jrating module folder. Unfortunately, there is no such file to replace within views module release, though there is a modules sub-directory with include files following a different file naming convention. Please advise since there are numerous reports of people being able to see average votes but not able to submit ratings.
Comments
Comment #1
hickory commentedYou only need votingapi_views.inc if you're displaying the votes in a View, and yes, it goes in the votingapi modules folder - it needs to be included by the votingapi modules as well. There used to be a file in there with the same name, but it's going to be replaced by a separate VotingAPI Views module.
Anyway, that shouldn't affect being able to submit ratings - you'll have to give more information about what's happening there, I haven't seen these numerous reports.
Comment #2
sciman commentedThanks so much for the response. My current effort is at http://www.enthuz.com/drupal/
I was referring to comments by other users posted in a forum at http://drupal.org/node/109464. It seems that a number of us have installed in 5 views, votingapi and jrating-5.x and though we get feedback on average votes, there's no apparent way of voting.
I activated jrating 5.x-1.x-dev at admin/build/modules. ALso activated Views 5.x-1.4-2rc1 and VotingAPI 5.x-1.2 and VotingAPIActions 5.x-1.2.
At admin/content/types I used the 'story' node, renaming it to "idea" and at 'edit' selected to display a rating control with nodes of this type. I wasn't sure about other node settings for images, etc., but did not show those since I presumed that was for attachments. I verified at admin/user/access that admin and authenticated users could "rate content" and turned on all the views and voting related related switches. At admin/voting/jrating I selected to display ratings for teasers, and to display average rating, and weighted the rating form at 0
All of this had the same impact as noted in a post by "Christoph" and displayed at his link at http://img46.imageshack.us/img46/7629/jratingjb0.png. One sees attached at the bottom of every story node something like "average rating (2 votes)" but there's no way to vote. There is text displaying the words "average rating" and a number of stars -- though not numbers along the lines of say a "3.5".
Is there something I'm missing? The stored votes were registered I think when I experimented with enabling Fivestar 5.x-1.3, though I have clicked and unclicked that to no effect.
My goal is to find a way of using Drupal as a brainstorming site where people could quickly rate a number of ideas in series (rather than going back and forth to poll displays). I haven't figured out Views at all as yet, but would love to find a way that the series of nodes would be rank ordered in terms of average scores.
Any tips of suggestions would be deeply appreciated.
Comment #3
hickory commentedIn rating.js, can you try replacing
with
?
Comment #4
hickory commentedI've updated the CVS branch with that fix now (it was a change in jQuery that broke it), so that should get picked up by the packager in a day or so.
Comment #5
baddesigner commentedi have this problem too
post #3 help me, but now voting form place under average rating (not inline, like was earlier in 4.7)
Comment #6
twibberjix commentedlol
glad this was fixed as I was just scratching my head wondering why I could only vote if I disabled javascript. thanks hickory! :)
Comment #7
baddesigner commentedalso there is no views page
Comment #8
twibberjix commented@baddesigner
Try removing the "clear: left" from the top of jrating.css - that makes it appear on one line for me. Though I know not what unforeseen consequences will come of this. ;)
Comment #9
hickory commentedYes, you can change the display of the elements with your own CSS.
Comment #10
hickory commentedhopefully
Comment #11
sciman commentedThanks for the help. Some were able to make all of this work, though not me. I'm using 5 and had a particular use in mind. I was hoping to be able to work from node teasers down a page so that my viewers could rate a good number of items and see results. I'd then have tried to figure out views in order to display a rank ordering of node teasers (stories).
I corrected the css as someone suggested, and saw an updated version of the rating.js where you had incorporated your suggestions here. I also created a subdirectory for the views module using the name you suggested and put the votingapi_views.inc there (though I wondered if it shouldn't go next to other items in the modules subdirectory).
Problems: When jratings is activated (fivestars turned off, php redone), the items can be voted on in html on a Mac with Safari on the story page, but so not appear on the teaser. On a Mac, one gets 6 buttons and no clue as to the score implications of each (this is true with Safari or with Firefox. Nothing appears on the views default page for identifying fields related to voting results. I'm not sure if some of this has to do with turning 5-starts on or off or what.. but I've about given up;-)
Comment #12
hickory commentedsciman: scorry, I'm having a really hard time understanding what you're trying to do. If you can try the module on a clean installation that would be best, and provide a link to your site. Bear in mind that the votingapi views integration could well be broken and isn't supported, as it's being rewritten by the author of votingapi as a separate module.
Comment #13
sciman commentedHickory was terrific. Since I'm so obtuse that I didn't want to clutter up the forums, I sent him email to try to clarify my situation. He was super helpful, visiting my site and helping to get things right. What a neat community Drupal is.
Comment #14
(not verified) commented