By Ferdinand on Sunday, 02 September 2018
Posted in General
Likes 0
Views 609
Votes 0
Hi, im trying to get users to get points every time their articles are read. I think i have it working , but thye only do so when a registered user reads the blog. Can I make it so they also get it when guest read?

Thanks in advance
Oh, it might be i misunderstood in earlier.

By default, when you install the new point rule in Easysocial, it will does nothing, because it needed to add some of the PHP code to support this new point rules.

Try copy my following point rule code into your xxx.points file then install again from your site backend > Easysocial > point > install , if you already installed the old point rules, you can remove it first before you install this newest one.

[
{
"title" : "Author Post Read",
"alias" : "read-blog-author",
"description" : "Earn Points when your article is read",
"command" : "read.blog.author",
"extension" : "com_easyblog",
"state" : true,
"points" : 1
}
]


Once you installed, you have to edit this file JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php
Under this hit method, you have to add this following code into that line, you can refer on my attached screenshot below.

EB::easysocial()->assignPoints('read.blog.author', $this->created_by);
·
Monday, 03 September 2018 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

If i recall correctly, by default the system will send point to viewer only instead of that blog owner.

May i know which read blog rule are you referring to?
·
Sunday, 02 September 2018 09:33
·
0 Likes
·
0 Votes
·
0 Comments
·
It might not be working with the new versions of easyblog and easysocial at all. I used the string "read-author-blog", any suggestions? in com_easyblog. Is the string outdated? It did work back in 2015 I believe.
·
Sunday, 02 September 2018 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Here is actually the whole code. Very easy, small.

[
{
"title" : "Author Post Read",
"alias" : "read-blog-author",
"description" : "Earn Points when your article is read",
"command" : "read-blog-author",
"extension" : "com_easyblog",
"state" : true,
"points" : 1
}
]

I tried changing the order from read-author-blog to read-blog-author and it still doesn't seem to work
·
Sunday, 02 September 2018 12:06
·
0 Likes
·
0 Votes
·
0 Comments
·
I've checked the code, it seems like we already removed AlphaUserPoints integration in Easyblog at 2017 since AlphaUserPoints is no longer maintained.
·
Monday, 03 September 2018 12:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Im not interested in alpahuserpoints, Im trying to write an easysocial rule for your points. Isn't that how it is done? Maybe you can help me write one? I wrote that one using your development guide.
Sorry for any misunderstanding.
·
Monday, 03 September 2018 13:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Let me explain the purpose , the easyblog code is not helping me, I want every time a reader reads an article, for the the author to be awarded easy social points.
·
Monday, 03 September 2018 14:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Implemented as you said, does not seem to be working
·
Monday, 03 September 2018 22:08
·
0 Likes
·
0 Votes
·
0 Comments
·
It works , thank you so much. It just needs the cache to be constantly flushed to update the values! You're the best!
·
Monday, 03 September 2018 23:59
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome, glad that your issue is resolved now.
·
Tuesday, 04 September 2018 00:17
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post