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
Comment #1
mario_prkos commentedThis 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.
Comment #2
docwilmot commentedyoure a good man.
thanks.
Comment #3
mario_prkos commentedThank 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.Comment #4
mario_prkos commentedintroduced in dev version closed
Comment #5
docwilmot commentedworks well. thanks.