Thanks for the recent views integration great work with that :)

I am posting this to request integrating this into the advanced forum. I don't have any blocks on my forum, so I would rather put all the information inside the php.tlp file so it will be integrated into the forum itself.

So currently I am putting
print $block['content'] = kudos_widget_form('node', $node->nid, 'block');
into the bottom of each node and comment by inserting it into advf-forum-post.tpl.php

Id like to do the same exact thing with the other blocks you provide, but not have them in the block but inside the posts.
So I'm basically just looking for the php code to insert into my advanced forum theme and print out the following information you provide in block:

Kudos Content Summary = print ???

Kudos User Summary = print ???

Kudos Node Stats = print ???

Kudos Node User Stats = print ???

Kudos Node Form = print $block['content'] = kudos_widget_form('node', $node->nid, 'block');

Thanks for all the help and a great module!

CommentFileSizeAuthor
#4 kudo.jpg45.49 KBsocki

Comments

RikiB’s picture

Can I safely assume this is not possible?

socki’s picture

This should be possible using the following function calls.

Kudos Node Stats =

$content = kudos_content_stats('node', $nid);

Kudos Node User Stats =

$content = kudos_account_stats($uid);

Kudos Content Summary =

//$a1 = 'node' or 'user'
//$period = 'all' would be the default

$content = kudos_content_summary($a1, $period);

Kudos User Summary =

//$period = 'all' would be the default

$content = kudos_account_summary($period);
RikiB’s picture

Thanks for your time, but I cant get any of these to work. I dont know php and all Im doing is this:

print $content = kudos_content_stats('node', $nid);

Yet nothing prints, is there anything else I need to do to simply print out this information?

socki’s picture

StatusFileSize
new45.49 KB

Have you made sure that the stats are updating? I just noticed that I must have changed a default setting in the admin area. Please be sure that the stats are being updated in real-time. This is quite important. Don't have it go on cron as that's not as accurate, and its actually less efficient. I'm going to remove that as an option in an upcoming release. This setting is on admin/settings/kudos.