Closed (fixed)
Project:
Fivestar
Version:
6.x-1.13
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2009 at 17:11 UTC
Updated:
25 Apr 2011 at 13:45 UTC
Jump to comment: Most recent
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.
| Comment | File | Size | Author |
|---|---|---|---|
| fivestar_comment.patch | 1.43 KB | mmartinov |
Comments
Comment #1
Anonymous (not verified) commentedIs 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.
Comment #2
quicksketchThanks matixbg, a perfectly reasonable request and a great patch. Committed.
Comment #4
axel pressbutton commentedSorry 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 :)
Comment #5
sansui commentedI was looking for this information, and even though this is a very old thread, seemed like a good place to point out that you can remove the fivestar display from the comment body with the theme function, and then place it elsewhere in your comment.tpl.php with
print $comment->fivestar_view;Just remove $fivestar in this function