Skip to:
Content
Pages
Categories
Search
Top
Bottom

Able to send a gift even though the points are negative and I have 0 points

  • Hello,

    I have this plugin enabled along with buddypress gifts. WP 2.9.2 & BP 1.2.3.

    I have it set so sending gifts costs points (-50). It’s letting me send gifts even though my points are at 0. Is there any way we can have it check if our points = 0 then display an error saying you do not have enough points?

    Also, do you know if it would be possible (or atleast not very hard to code up) to have different gifts cost different points? Just a question ^_^

    I’m trying to use this as a reward for my users and promote activity. Thanks for your time!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of Tosh
    Tosh
    Participant

    @xberserker

    I’ll look at some things and get back with you.

    @xberserker Thank you I appreciate it~

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    Made a little progress on this .. still working on it though.

    Thanks for the update :3

    Avatar of Tosh
    Tosh
    Participant

    @xberserker

    Here is how you do it. I’m closing this thread so we don’t have all these topics open on the same question.

    I have it working! :D But, not sure if it will make it into the plugin just yet. You’ll have to edit 1 file to make it work. Here is how it works.

    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.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.