By Steven on Thursday, 03 July 2014
Replies 1
Likes 0
Views 894
Votes 0
I am hoping for some guidance on how to create a custom rule for the "Social Share" function. I am not a programmer, but am fairly savvy once given some basic instruction and am posting in tutorials as I am sure others may be interested in the process.
In reviewing the Developer documentation there seems to be some basic information, can you please some further information?
Where would we place the rules in ES' file structure?
Would the following code as shown in the Developer documentation be all that is needed, but with "social share" replacing "Install Applications"?
[
{
"title" : "Install Applications",
"alias" : "install-apps",
"description" : "Earn points when you install applications for your profile.",
"command" : "apps.install",
"extension" : "com_easysocial",
"state" : true,
"points" : 5
}
]
A step by step instruction for the process would be amazing at least regarding writing custom point rules for default functions. If it is more information than can be answered in a forum post, I apologize greatly.
Thanks so much!
Hello Steven,

Here's a very brief idea on how one should use the points rules.

1. Create a new points rule file. Give it any name that you want and name it "something.points"
2. In the file, it should contain the json manifest like the codes you posted above
3. Run a rule discovery in EasySocial so that this new rule is logged into the database.
4. In your php codes, you need to be able to track when someone shares an item to a social network and log the points as shown here, http://docs.stackideas.com/developers/points/logging
·
Thursday, 03 July 2014 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post