By Ashley Rosenthal on Tuesday, 11 February 2014
Posted in General Issues
Replies 4
Likes 0
Views 739
Votes 0
Hi there,

I am creating some new .points files and using the documentation from http://docs.stackideas.com/developers/points/rule_file. The rules that I am trying to create are to give users points when they actually rate another users article, as well as another rule that gives the user points based on someone else's rating of their article.

The only portion of the rule that I am having trouble with is the "Command."

I examined some other rules and see things like "app.install" and "author.read.article."

I am not sure how to even come up with the command for rating someone else's article. I am imagining something like "rate.article" or "author.rate.article".... is this on the right path? Or how do I determine the language to use in the commands. I have attached the rules that I created so far w/out the commands obviously in hopes that you have some suggestion of where I should look to create new commands.
You might benefit from using another Joomla component that enables users to create articles (listings) and review them (reviews). JReviews has a "reviews anywhere" plugin that allows your site users to review "regular" joomla articles, not just "listings" that are created with JReviews. As your site might enable users to upload artifacts or samples you might also enable these to be reviewed as well. Additionally, your users can generate stream activity if you opt to push that information (i.e. on writing a new review pushes out to uses stream).

The component JReviews tightly integrates with EasySocial, including the distribution of points to users based on their reviewing activity. Maybe in this case it makes sense to leverage that other component, study and modify it if you'd like something else?

You can view JReviews site and especially the page detailing the integration with EasySocial.
·
Tuesday, 11 February 2014 08:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for sharing.

Regarding the command, we usually suggest the format of:

subjectnoun.verb

For example, blog.like, blog.subscribe, blog.read.
·
Tuesday, 11 February 2014 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Jason for the quick response.
By the way, how do we know that the command will recognize that the user actually did that subject.noun.verb command?
·
Tuesday, 11 February 2014 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Actually, just creating the command itself won't be sufficient. The command is just a layer. You will have to call the assign points API to assign points accordingly.

Refer to the doc here: http://docs.stackideas.com/developers/points/logging
·
Tuesday, 11 February 2014 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post