Errors in Rate and review 2

Errors in Rate and review 2

1 reply
Visitor
First, Rate and Review 2 is one of the greatest tutorials I've ever seen, but it has some errors in it: 1. When you say: Change $items[$delta]['target'] = drupal eval($item['target']); to $items[$delta]['target'] = eval($item['target']); You'll see that in release 5.x-1.13 there's not such line. Apparently there's no need to hack the module... 2. When you say: <?phpprint l("node/add/review/parent/$node->nid",NULL,NULL,NULL,FALSE,TRUE);?> Well this isn't working at all, instead you must have: <?phpprint l(t('Create new review'), "node/add/review/parent/$node->nid", array('class' => 'relativity_create_' . $type));?> this is actually better because you have the possibility to hide "node/add/review/parent/nid" and have a nice link. 3. In Step 4 you tell us to create a view, I want to add a couple of things to this: First, if you set the argument to Use empty text, the only thing I got was the empty message. I had to change this to "Display all values". Second, you don't need to create a page, instead I created a block, and then I could add this block to the bottom of the reviewed node, you could use tabs for this and you'll get a very cool appearance. If you do this, I also recommend to skip the: "Node Relativity will automatically list the child nodes but you can add this code to your node-type.tpl.php to place them manually:" Bonus: you can also install the flag module, create a flag for the review node type so you can have a link saying "flag this as offensive". Thanks for this tutorial, it's great and it does exactly what I wanted, to use "comments" as nodes, display them in a block. Luis Elizondo
Joined: 05/13/2007
User offline. Last seen 1 hour 34 min ago.
Not really errors

The tutorial worked fine when it was written, but that was nearly a year ago. It's not really "errors" just simply out of date since the modules have changed. I'm amazed it's still useful at all. LOL

I've linked to this post at the top in case anyone else tries to use it.

Thanks,

Michelle

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options