I've looked through the issue queue but couldn't find anyone asking the same question, hopefully I've overlooked something simple and that this is possible.
I currently have a view set up that shows the bookmarks of each user and has a column that shows their fivestar rating for each node. This is working fine, but problems occur when you visit another persons profile and look at their bookmarks, you will see their bookmarked content, however it will display your ratings instead and not the owner of the profile your viewing.
So ideally what I would want is to have it so that when you're viewing your own profile, you can rate and edit your ratings and when you visit another person's profile, you are only able to see their static ratings. How would I go about doing that?
Comments
Comment #1
quicksketchHa, well I guess it figures that I'd find these two right in a row... this is very similar to your request over in the Flag queue: #647366: Show unbookmark this on user profile only for the profile owner. Unfortunately the answer is the same... the only way to do this currently is to do some custom theming. For this situation at least you just need to theme the Fivestar field, not the entire view, since the column in the table will be there whether or not the user's ID matches the profile they're currently viewing.
Comment #2
Platinum commentedThe bookmarks one might be easier to theme for me. For fivestar, I'm a bit stuck even before trying to display static ratings or not. Currently I have the "restrict to current user" checked. My first thought was to turn that off and grab all the results and narrow the rows down to the uid of the profile owner. So as the tables loops over to display the rows I will run a basic if check to make sure that the current user matches the uid of the vote, but I can't actually get the uid of the vote until I loop into the field, but at that point, some of the table columns will already have been outputted. What would be the proper way to do it as I don't think I'm doing it right.
Comment #3
AtlasX commentedAnyone ever make any progress on this? I'm currently experiencing the same problem.
Comment #4
whiteph commentedSorry, Drupal 6 is end of life, and is no longer supported.