MyBB Community Forums

Full Version: Different rates in Buy Points
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Question about Buy Points, you can set a value of 1 point and different amounts, but is it possible to set a different rate for every amount, for example 1$ for 10 points, 0.9$ for 20 points etc...?

edit:

Please move to plugin support... to fast
i dont think this is possible however there are many plugins for the newpoints system and there may be plugin that alllows you to do this
Unfortunately I didnt find any plugin, that would allow difrerent rates for buying points via paypalSad
Maybe you could tinker with the code abbit?
I have tried, but dont have enough knowledgeWink maybe someone?Wink
I think what you're referring to is more along the lines of Bonus points. ie, the more you spend, the more points you get per dollar spent. This could be done very very simply... and in a few different ways.

For example:
You could have it (pseudo code):
if (points_purchased > 999) {
   points_purchased *= 1.30 // 30% bonus
}
else if (points_purchased > 799) {
   points_purchased *= 1.20 // 20% bonus
}
else if (points_purchased > 499) {
   points_purchased *= 1.10 // 10% bonus
}
And so on, with the bonuses being percentages. If you want the bonuses fixed, then you could do it (same if brackets):
if (points_purchased > 999) {
   points_purchased += 100
}
else if (points_purchased > 799) {
   points_purchased += 70
}
else if (points_purchased > 499) {
   points_purchased += 50
}

Obviously these are just examples, but this is a very easy thing to implement.
Seems to be very clear, but how to implement that, so plugin wont cause any errors..
any idea how to do that?