How to force member to have enough points to send a BuddyPress Gift
Go to this file: wp-content/plugins/buddypress-gifts/includes/templates/gifts/screen.php
And replace it with the following – http://pastebin.com/5HXs3Hws
My edit starts on line 56 and ends on line 139.
If say giving a gift costs 50 points (doesn’t matter since it checks the value you put in the BP CubePoints Admin).
The points the member has must be greater than or equal to the gift value negative or positive in order to see the gift form. If they don’t have enough points the form will be hidden and it will display this text.
You need %pulls in the value you put in the BP CubePoints admin field% points to sent a gift.
If the value is a negative it won’t display the – in the text above. Not sure if this will make it into the plugin yet. If you have any ideas how let me know.
- The topic ‘How to force member to have enough points to send a BuddyPress Gift’ is closed to new replies.