By Michael Squire on Saturday, 21 May 2016
Posted in General
Replies 1
Likes 0
Views 728
Votes 0
There are some point rules with Shika already but I just wanted to know if it is possible to create a points rule for a course category within Shika.

So at the moment you get X number of points for completing a course. Is it possible to create a rule so that you get 5 points for a course in one category, and 10 points in another?

If so can some guidance be provided as I am a novice, happy to do it but did not want to waste my time is this is not possible.

Any support much greatly received.

Thanks

Mike
Hey Michael,

You need to apply these hacks within Shika itself. EasySocial points system only works as a "database" that stores user's points. The logic behind "adding points when user performs specific actions", needs to be done on the script itself.

This is what you need to do,

1. Create a badge file as outlined on http://stackideas.com/docs/easysocial/developers/points/rule-file

2. Within Shika's files itself, you need to find the place where courses are "saved" and this is where you need to add the PHP codes to log the points, http://stackideas.com/docs/easysocial/developers/points/logging
·
Sunday, 22 May 2016 00:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post