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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| fivestar_comment.patch | 1.43 KB |

#1
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
Thanks matixbg, a perfectly reasonable request and a great patch. Committed.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
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 :)