By Mustapha Bahassi on Thursday, 05 December 2013
Posted in Technical Issues
Replies 1
Likes 0
Views 655
Votes 0
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>
Hello Mustapha,

I am sorry but please understand that customizations are not supported as outlined in our support policy, http://stackideas.com/support
·
Thursday, 05 December 2013 10:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post