By Ningning Niumai on Thursday, 25 September 2014
Posted in General Issues
Replies 5
Likes 0
Views 775
Votes 0
I notice there's a "Reminder for inactive users" in the upcoming version but i'm wondering if there's a feature where the points of users are decreased after the user becomes inactive for xx days. Points keep decreasing as per his inactivity every x days till it becomes 0 points.

This is very important since some users stay on top of the Leader Board after several months of inactivity!!

or is this featured already in existence and i didn't know about it?
I don't know if this exist already but I think you can easily create this with this method.

You can create a cron job to decrease it automatically.
1. Here's how it works, enable login status (this is where you will get the last login date)
2. Create a cron job that will run a script that check last login date of user, then run an sql to remove some points
Ken
·
Thursday, 25 September 2014 07:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Here's the query for you, if you need a code to create a new point design


INSERT INTO
`#_social_points` (
`command`,
`extension`,
`title`,
`description`,
`alias`,
`created`,
`threshold`,
`interval`,
`points`,
`state`,
`params`) VALUES (
'remove.points',
'com_easysocial',
'COM_EASYSOCIAL_POINTS_INACTIVITY',
'COM_EASYSOCIAL_POINTS_INACTIVITY',
'inactivity',
NOW(),
NULL,
'0',
'-20',
'1',
'')


Then just map it to the user in points activity.
Ken
·
Thursday, 25 September 2014 07:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing this Ken
·
Thursday, 25 September 2014 17:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank You.

It would be great however if its included in the EasySocial package. I feel this is a very important feature.

Somehow, this manual work is too much work!
·
Thursday, 25 September 2014 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Please do submit feature requests for EasySocial at http://stackideas.com/voices/easysocial
·
Thursday, 25 September 2014 18:39
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post