Closed (fixed)
Project:
Vote Up/Down
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2011 at 22:57 UTC
Updated:
30 Nov 2014 at 09:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
welly commentedIf you're handy with templating, this should be quite simple to do.
In the voteupdown administration (this is for comment voting - should work with node voting too), you can set the widget display to not append to comments and that you'll manually insert
$comment->vud_comment_widgetin your template. Do a check to see if the comment uid is the same as the logged in uid and if so, don't display the widget.Comment #2
drnikki commentedTaking the lead from Grayside's implementation on http://drupal.org/node/554360#comment-3303302, I've got one implementation that hides the widget in node_view if the current user created the node.
This has not been implemented for comments or fields.
This should be applied after #1194274: Port vud_node to D7 and #1295376: Error when viewing user's votes
Comment #3
marvil07 commentedThis should be trivial on 6.x-3.x because #877392: Add hook that allows modules to alter voting permissions was applied there, so the point is just implementing
hook_vud_access().On 7.x-1.x the patch was not applied, actually it's on "to be ported" state. So I guess that would be a better approach.
So, as support request, I guess this can be marked as fixed, and port can follow on the related issue.
Comment #4
drnikki commented@marvil07 - yeah it wasn't a support request from me, per se. Had to implement it for a project so I thought I'd share when I saw this post.
Comment #5
klonosPlease don't mind if I re-open this.
I understand maintainers' urge to close issues in order to clean the queue up, but there is no actual solution that answers the question. Once there is, I will personally update the issue summary to point people to a solution/workaround (for both 6.x & 7.x) and then mark this as fixed. I think this is the proper procedure.
Comment #6
marvil07 commentedIt will be possible after #877392: Add hook that allows modules to alter voting permissions
Comment #7
klonosThanx Marco. I've updated the issue's summary.
Comment #8
marvil07 commentedThe issue mentioned on comment 6 is now fixed, so it's possible now. See vud.api.php for the mentioned hook documentation.
Comment #9.0
(not verified) commented...status update/mention #877392
Comment #10
kaztur commentedSome necroposting! :)
I've it with so CSS solution and this doesn't hide whole widget but makes it inactive: I show vud wifget in my comment.tpl manually with
print $comment->vud_comment_widgetconstruction. So after it I put div tag with class like "own-comment-voting-tweak".In my theme comments written by viewer have own classes like "comment-by-viewer".
So after adding tweak div tag with CSS margin (negative), floating (or you can make it with absolute positioning) I set that div tag above vud widget woth class like
".comment-by-viewer .own-comment-voting-tweak"- so user cann't click on widget because it hidden under transparent div.Comment #11
kaztur commentedScreen for previous post.
