By Govind Prajapati on Tuesday, 10 March 2015
Replies 3
Likes 0
Views 1K
Votes 0
Hello, We have very specific requirement

where we just want to assign the Points to User by Clicking on button
User can use that button once only (We will manage that tracking)

but we need just simple method to assign custom points from PHP
by which we can add points to User's Account

Thats IT.

Also on another note, we also need to trigger one plugin whenever there are any assignment of Social Points are made via any of the EasySocial activities.

How we can do that.

Thanks
Hello,

You can actually refer to the points developers guide from http://docs.easysocial.io/developers/points . As for triggering a plugin when social points are made, what you can do is to create an app for EasySocial and hook onto either of the following triggers:

- onBeforeAssignPoints
- onAfterAssignPoints
·
Wednesday, 11 March 2015 10:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you give simple App example?
·
Wednesday, 11 March 2015 13:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Govind,

Actually you can refer to any Easysocial app. I take Discuss app as an example here. If you open this file: ../media/com_easysocial/apps/user/discuss/discuss.php, you can see function onAfterLikeSave. This function, in your context is same like onBeforeAssignPoints or onAfterAssignPoints. In this function, you can do anything you want before/after assign point since, we have already trigger this function when assigning point in this file ../administrator/components/com_easysocial/includes/points/points.php on line 104 & 110.
·
Wednesday, 11 March 2015 16:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post