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

hickory’s picture

You 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.

sciman’s picture

Thanks 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.

hickory’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » hickory

In rating.js, can you try replacing

  return this.pushStack( [].sort.apply( this, arguments ), []);

with

  return this.pushStack( jQuery.merge( [].sort.apply( this, arguments ), []), [] );

?

hickory’s picture

I'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.

baddesigner’s picture

i have this problem too

post #3 help me, but now voting form place under average rating (not inline, like was earlier in 4.7)

twibberjix’s picture

lol

glad this was fixed as I was just scratching my head wondering why I could only vote if I disabled javascript. thanks hickory! :)

baddesigner’s picture

also there is no views page

twibberjix’s picture

@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. ;)

hickory’s picture

Yes, you can change the display of the elements with your own CSS.

hickory’s picture

Status: Active » Fixed

hopefully

sciman’s picture

Thanks 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;-)

hickory’s picture

sciman: 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.

sciman’s picture

Hickory 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)