Active
Project:
Kudos
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2010 at 22:20 UTC
Updated:
1 Sep 2010 at 15:26 UTC
Maybe I am doing something horribly wrong, but I've read the readme and the support request and I haven't found my answer yet.
I want to add Kudos to comments only of articles (we're a news Web site). Something like "agree" as a kudo and "disagree" as a separate kudo.
I can see the form to add kudos, but not the actual kudos that a comment has received themselves (like, 4 people have agreed with this comment).
Is there a block I need to add (or a function to add to comment.tpl.php) to see this?
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2010-07-13 at 6.14.39 PM.jpg | 85.12 KB | pazzypunk |
Comments
Comment #1
pazzypunk commentedI was able to make this work, if anyone is looking at this ...
You can see it in action at http://www.sunjournal.com.
Here's how I did it.
In my custom module, I have this function:
function sunjournal_custom_link($type, $object, $teaser = FALSE) {
$links = array();
if($type == 'comment') {
/* To add Kudos to comments*/
if(module_exists('kudos')) {
$links['kudos'] = array(
'title' => kudos_content_stats('comment', $object->cid),
'html' => TRUE,
);
}
}
return $links;
}