allow the rating for comments to be put bellow the comment

matixbg - February 20, 2009 - 17:11
Project:Fivestar
Version:6.x-1.13
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Quick and dirty patch allowing us to choose (via theme function) where to render the rating display in the comments view - it's hardcoded to be before the comment in the fivestar_comment module but we needed it bellow each comment.

AttachmentSize
fivestar_comment.patch1.43 KB

#1

gregeise - March 4, 2009 - 17:01

Is there a way to remove it completely from $content? I'd like to display the rating elsewhere in my comment.tpl.php file, but it shows up in both the place I want to put it and, as you described, in the comment body.

EDIT: after looking at the patch I take it there isn't currently a way to do this without patching...hopefully in the future the UI will have a place to choose something like:

Where to place the rating in the comment body:

1) Top of the comment body
2) Bottom of the comment body
3) Do not place the rating in the comment body

I may need to whip up a patch like this soon.

#2

quicksketch - April 10, 2009 - 17:50
Status:needs review» fixed

Thanks matixbg, a perfectly reasonable request and a great patch. Committed.

#3

System Message - April 24, 2009 - 18:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

Axel Pressbutton - August 10, 2009 - 16:39

Sorry to bring this one up again...

But could somebody please tell me how I "Implement the theme in template.php to change the order:" (fivestar_comment.module line 119) - I'm quite new to advanced theming and am trying to change the position of the fivestar rating in comment.

Like gregor7777, I too wouldn't mind being able to move the rating outside of $content, is this actually possible?

Thanks for any help with this :)

 
 

Drupal is a registered trademark of Dries Buytaert.