Attached is a simple patch that adds a rate_embed_comment function to allow you to easily embed a widget on comments.

Very useful for ctools plugins (usage w/ panels) and views.

Comments

kirillsmile’s picture

hm. i don't clearly underdstand how to embed comment widget. ok, i patch the module, than i try to do this like this:

print rate_embed_comment($cid, 'uservote');

that0n3guy’s picture

You have to add the node type as well:

print rate_embed_comment($cid, 'uservote', 'article');
kirillsmile’s picture

ok, i got it. thanks a lot!

summit’s picture

Hi, could this comment adding also be entity based, so it can be used on drupal commerce products?
greetings, Martijn

ivnish’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is EOL. Issue will be closed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.