After searching drupal.org and the web for hours and trying the suggested solutions for implementing fivestar cck fields in D6 (see Documentation for Fivestar), I have found no way of successfully implementing this feature. Fivestar cck fields are virtually useless to anyone who is not advanced in module development.

From the many posts on drupal.org, it is apparent that many people (including myself) want to use fivestar cck fields to rate nodes and then display the results of those ratings (averages) on the nodes' pages. There is a tutorial in the fivestar documentation that explains how to do this, but it requires nodecomments and is specific to D5. This causes two problems because many people wish to use D6 and not have to use nodecomments. The suggestions on the tutorial page for D6 simply do not work. The multi-axis voting suggestions for D6 do not work either.

If anyone has successfully implemented a multi-axis rating system of nodes on drupal 6 using fivestar, I would be very interesting in learning how you did so. I would be glad to write up a formal tutorial for a D6 multi-axis rating system that could be added to the fivestar documentation.

I want to make this a feature that anyone with basic drupal skills could implement if provided with the appropriate documentation.

Let me know your thoughts!

CommentFileSizeAuthor
#3 FivestarTutorial.txt6.35 KBdavedg629

Comments

quicksketch’s picture

This is probably the most well-written request for documentation, though it's been requests a half-dozen times already. I'll start redirecting other requests here.

quicksketch’s picture

davedg629’s picture

StatusFileSize
new6.35 KB

Here is a tutorial for create single rating and multi-axis rating systems with drupal 6 fivestar module. Hopefully this will help eliminate duplicate and unnecessary issues about using fivestar cck fields. Please review.

davedg629’s picture

Status: Active » Needs review
quicksketch’s picture

Thanks davedg629, I think the big problem isn't setting up the CCK fields (which our Fivestar and Node Comment tutorial covers), it's the problem of making new reviews and listing them.

I'd suggest that we also include how to make these listing with the Views module, and using Node Reference URL Widget, we can streamline the process of adding a review to a product (or other node type). We can also probably leave out the separate instructions for single-axis rating, or just mention it inline with the other instructions since there isn't really anything different from the multi-axis instructions.

quicksketch’s picture

Also, handy as the theming instructions are, we'll probably end up splitting them into their own handbook page. People are frequently asking how to theme Fivestar even with they're not setting up review systems.

davedg629’s picture

Yea, I was explicit with the instructions. I figured it is better to give detailed instructions, that way someone with limited drupal experience could set up a ratings system. I'll will slim down the basic stuff though. The single axis rating instructions can go too, if you can do multiple, you can do single.

As far as incorporating the views module I am not sure what feature you are implying. Are you talking about listing the Review nodes? or listing the Product nodes?

I think the basic custom template code needs to be included in this tutorial, I had no idea how to display the ratings widget in the Product nodes until I looked at the handbook pages. Maybe a link to the theming page could be placed in the tutorial somewhere so users know where they can get that info.

davedg629’s picture

K I've slimmed down the tutorial. I'll wait to hear what you want with the views module and I'll take a look at the node reference url widget.

davedg629’s picture

Status: Needs review » Closed (fixed)

It looks like there is going to be a lot of feature updates in the next version of Fivestar which will make most of this tutorial obsolete. After the new release, I will determine if this documentation is still needed or submit a revised tutorial that will be more relevant to the new release. I will close the issue for now and reopen in the future.

Anonymous’s picture

I have come pretty far using this tutorial, but how about displaying the votes using the views module???
I only get 'NULL' values from views?

calefilm’s picture

Hi guys,

I'm trying my best to implement a rating system for my site but confused which direction to take.

Should I read the Fivestar and Node Comment tutorial you referenced 'quicksketch' (for Drupal 6?) And upload the node comment module? Or can I now use Fivestar, Views, CCK, Taxonomy and make this all happen using Dave's example and maybe some other tutorial?

I'm creating a site with 2 users: members and agencies (members rate agencies)

agencies each have their own profile:
average ratings located on agency profile; below agency profile we see a list of comments along with members' 5 star ratings

similar in scope to ratemyprofessor (but using stars): http://www.ratemyprofessors.com/ShowRatings.jsp?tid=941498

wflorian’s picture

I am acutally also very interested in using a multi axis rating system on a drupal 6 site.

Did anyone try the following solution? http://shellmultimedia.com/tutorials/rate-and-review-2

Florian

quindio’s picture

Hi calefilm,

Did you ever find out a way to do rating and comments like ratemyprofessor.com does it?

Thanks,

quindio :-)

calefilm’s picture

Sorry for delay quindio--I haven't quite gotten there yet. I'll be at that step in about 2-4 weeks... We'll see what I come up with but I'm assuming I'm going to use fivestar, CCK and Views heavily with some CSS I suppose.... but i'll experiment with other rating modules along the way. I will post my findings!

calefilm’s picture

I followed this tutorial: http://drupal.org/node/457886

Afterward, you might add a text field for comments in the "review" content type and easily create a clean table style view with the features you requested. This is a start anyway.

RKS’s picture

Status: Closed (fixed) » Needs review

So I'm only trying to do the basic setup for single axis reviews. I can see the widget, I have the "add a new review" link, clicking the review link opens the CCK content type. Everything goes great until you try to save the review. When you do, it throws a parse error:

Parse error: syntax error, unexpected '<' in /var/www/html/el/elixirist.com/sites/all/modules/fivestar/fivestar_field.inc(144) : eval()'d code on line 1

BTW, the "<" the error is referring to on Line 1 is <?php

I copied everything exact with the exception of the D6 version in the tpl.php file.

Anyone have any help for this I'd greatly appreciate it.

[EDIT] It's actually saving after pressing save but you can't let users just get a parse error when they try to save so I still need a fix.

[EDIT CORRECTION] It's saving the review but not saving the rating. The review title, body, and stars appear but all the stars are blank as if there is no rating.

whiteph’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Sorry, Drupal 6 is end of life, and is no longer supported.