Closed (won't fix)
Project:
Vote Up/Down
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2007 at 02:49 UTC
Updated:
11 Jun 2010 at 09:04 UTC
I have an Alternative +1 vote style enabled for nodes, and a Default +1/-1 vote style for comments. I want to try to move the comments +1/-1 widget up to the top, alongside the comment title, but I can't figure out how to change this. I tried using:
<?php print $vote_up_down_widget ?>
in comment.tpl.php, but that had no effect (it didn't even print a duplicate comment voting widget). Can someone please point me in the right direction?
Comments
Comment #1
tj2653 commentedOkay, I believe I was able to move the comment voting widget successfully.
In comment.tpl.php, I added:
print theme("vote_up_down_widget$style", $comment->cid, 'comment')and in vote_up_down.module, I commented out the following line in the vote_up_down_comment function:
Being a newbie to Drupal, I know that this is probably not the right way of doing things, but it seems to work. Is there a better way of doing it?
Thanks,
Cary
Comment #2
marvil07 commentedPlease take a look to the update on the project page, now
5.xis not-really-maintained.If you think your question is still applicably to the last recommended version(
6.x-2.x) please move the version accordingly and reopen it.