i would like to show what a user voted in his comments.
that is, a new content type with a pollfield; user casts a vote, then writes a comment. i need to be able to insert some snippet in comment.tpl to pull his vote choice into his comment. tried print_r on the node, but the user's vote doesnt list.
any suggestions?
thanks

Comments

mario_prkos’s picture

This task is not trivial one. I will try to code theme function which can be put in a comment.tpl.php file and put user vote to comments. When I succeed I will post you on this support request. Keep in touch.

docwilmot’s picture

youre a good man.
thanks.

mario_prkos’s picture

Thank you for your comment. I done it, after midnight gmt dev version will be refreshed and you can downloaded and try it.
New theme function is added and you can use it as:
print theme('user_vote', $node,$comment);; where ever you want in comment.tpl.php.

mario_prkos’s picture

Status: Active » Closed (fixed)

introduced in dev version closed

docwilmot’s picture

works well. thanks.