UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Need to prevent user from going negative on points

Dan Cote · ·
6:28 AM Sunday, 27 August 2017
Normal
I have a problem that has been asked about 2 times before by other users. I have a points rule that deducts points. We are trying to use it on https://rvpoints.com/points-deals so that a user would get a deal for "X" amount of points. We have a point rule that then deducts those "X" amount of points. The problem is that Easysocial allows the Points value of the user to go negative. We want to some how have a warning come up that if a deal is "2000" points and they only have earned "1500" points, then they are short on points and can't get the deal.

The points rule only tells Easysocial to deduct points, how might we be able to find out the total user points of a user? Is there some variable in the system for the Total user points? If so, then I can tell my developer to use the points rule but also have it do a check of the user's point total first and if the deduction goes negative to have a warning modal window come up saying they don't have enough points.

This relates to the following forum post: https://stackideas.com/forums/points-question

Any help on this would be appreciated. I think I have a possible concept on how to get this to work, but I need to know how to get to that User's Points Total.

thanks,

Dan Cote
The replies under this section are restricted to logged in users or users with an active subscription with us