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

tj2653’s picture

Okay, 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:

$comment->comment = theme("vote_up_down_widget$style", $comment->cid, 'comment') . $comment->comment;

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

marvil07’s picture

Status: Active » Closed (won't fix)

Please take a look to the update on the project page, now 5.x is 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.