UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

How to log votes on the user that RECEIVES the vote

Mustapha Bahassi · ·
5:50 AM Thursday, 05 December 2013
None
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>
The replies under this section are restricted to logged in users or users with an active subscription with us