I created new rules for the votes in EasyDiscuss, so that when a user posts a question or reply, and this question/reply gets voted by other users, the author of the question/reply also gets points.
The implementation is something like this, the points are assigned OK:
DiscussHelper::getHelper( 'Points' )->assign( 'easydiscuss.someone.voted.my.reply' , $post->user_id );
Now I want to log this action in the authors history, I tried the following but it's not working:
DiscussHelper::getHelper( 'History' )->log( 'easydiscuss.someone.voted.my.reply' , $post->user_id , 'Someone voted up your reply to ' . $question->title , $post->id );
Please help me and let me know why the History helper is not logging the activity in the author that receives the vote.
Thanks
FYI the rule I uploaded looks like this:
<?xml version="1.0" encoding="utf-8"?>
<easydiscuss type="points">
<command>easydiscuss.someone.voted.my.reply</command>
<title>Someone voted my reply</title>
<description>Add points for reply author when a user votes up on that reply.</description>
</easydiscuss>