Is it possible to have some additional variables to display in the custom message for users without enough points? Rather than just say "You do not have enough points", it would be nice if you could say "You do not have enough points for this action. You need at least 150 more points to sticky this node", or "Users must have 200 points to perform this action". The only variable I could find in the documentation was the !points variable. Are there any guides to customize these messages better?

Comments

BillyMG’s picture

Assigned: Unassigned » BillyMG
Category: support » feature
Priority: Normal » Minor

EDIT: No, that's not right. Wait, yes it was. Just, let me think on it and I'll get back to ya.

BillyMG’s picture

Status: Active » Needs review

Check the latest dev code. It should have what you're looking for.

NathanM’s picture

Sorry, missed this before. These new options are exactly what I was looking for. Thanks a lot!

BillyMG’s picture

Status: Needs review » Reviewed & tested by the community

Fixed, will be pushed over to the next branch.

Negor’s picture

What about editing "User lost 150 points"? Where can I edit it&

BillyMG’s picture

That's a message generated by Userpoints itself, so you would want to edit it in the settings for that module directly.

BillyMG’s picture

Version: 6.x-1.x-dev » 6.x-1.6
Status: Reviewed & tested by the community » Closed (fixed)

Committed in 1.6.