By Valera on Sunday, 17 November 2013
Posted in General Issues
Replies 13
Likes 0
Views 651
Votes 0
Plugin plgaup_easyblog_read blog gives points for blog readers. How to make these points are awarded to the author blog?
I can not find the path to the file.
Or tell me how to create a rule for AUP
Hello Valera,

I am really sorry for the delay of this reply as it is a weekend for us here. I am not entirely sure if AUP allows you to upload the xml file now but if it doesn't, all you need to do is to create it manually through AUP's rules area and set the rule plgaup_easyblog_read_blog
·
Sunday, 17 November 2013 20:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Established rules for AUP. I just can not find the path to plgaup_easyblog_read_blog to his rule.
·
Monday, 18 November 2013 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valera,

Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Monday, 18 November 2013 12:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Site on the local computer. Could you specify the path to the file and specify the variables. How you made ​​it here: http://stackideas.com/forums/earning-points-for-votes-in-the-component-esadisccus
·
Monday, 18 November 2013 23:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valera,

That's actually for EasyDiscuss but basically the idea is to upload those xml files through AUP so that it can log down new points when a blog post is read
·
Tuesday, 19 November 2013 01:12
·
0 Likes
·
0 Votes
·
0 Comments
·
You do not understand me. I have already downloaded and installed AlphaUserPoints and AUP plugin here (http://stackideas.com/downloads/plugins/easyblog).

All this is already installed and running. I need a path to
plgaup_easyblog_read_blog
. I want to edit it.

/components / com_easyblog/ and then where to go?
·
Tuesday, 19 November 2013 05:36
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry but I don't quite understand you . What path are you referring to here?
·
Tuesday, 19 November 2013 12:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Example:
I asked the question: Hello If I vote for a question or answer, points are awarded me. The author, in this case, does not receive points. It turns out that you work not on the site and get points. This is not fair. How to fix that for the votes of the questions or answers received scores author? Thank You!
Arlex Wong gave me this answer:
Sorry for late reply,
You can modify the code from here :
...\components\com_easydiscuss\views\votes\view.ajax.php
LINE 134
DiscussHelper::getHelper( 'Aup' )->assign( DISCUSS_POINTS_ANSWER_VOTE_UP , $my->id , $question->title );

Change to
DiscussHelper::getHelper( 'Aup' )->assign( DISCUSS_POINTS_ANSWER_VOTE_UP , $post->user_id , $question->title );


He helped me and we solved the problem.

This answer I want to get to my question.
·
Tuesday, 19 November 2013 14:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valera,

Thanks for clarifying this. I'm glad you have solved your issue. If you need further help please do not hesitate to ask.

Cheers!
·
Tuesday, 19 November 2013 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
I have not solved this problem. I showed an example of how Arlex Wong helped me solve the problem in a component easydiscuss.
Now, based on this example, I want you to help me solve the problem in a component easyblog.
What you need to do to points accrued for a blog author? Currently, they are awarded to those who read the blog.
·
Tuesday, 19 November 2013 17:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valera,

Sorry for the misunderstanding. There is already a rules for what you want. The name is

plgaup_easyblog_read_blog_author

This is the rule that assign points to the author is the post is read. The codes are here

JOOMLA/administrator/components/com_easyblog/tables/blog.php

at line 240 to 245
// Add points for author
if( EasyBlogHelper::isAUPEnabled() )
{
$aupid = AlphaUserPointsHelper::getAnyUserReferreID( $this->created_by );
AlphaUserPointsHelper::newpoints( 'plgaup_easyblog_read_blog_author', $aupid, '', JText::sprintf('COM_EASYBLOG_AUP_READ_BLOG_AUTHOR', $this->title) );
}

Hope this helps.

Thanks!
·
Tuesday, 19 November 2013 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
All thanks. You have helped me. We had to create a rule AUP (function name): plgaup_easyblog_read_blog_author
·
Tuesday, 19 November 2013 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Valera,

Great! You are most welcome. Glad that your issue is solved.

Thanks!
·
Tuesday, 19 November 2013 18:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post