Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

karmabank

can a member send karma to another member?

Comments

  • users must be able to donate a score to each other.

    when a user donates, the balance decreases.

    @R_J
    do you have an idea?

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    My first idea is "Use the [Ask a Question] button on the plugins page".
    My second thought is "Why is he asking me instead of the plugin author?"

    Both are not helpful for you, I know.

    My thoughts about the task are:
    1. This is absolutely doable. "Karma" is just a number in the database.
    2. If the Karma overview is extendable, it would be best to simply add a [Transfer Karma] button to that screen
    3. If the view is not extendable, maybe a module would be a good idea
    4. The Author Selector plugin is an example for how to implement a user picking dialog
    5. Such a plugin should have an Activity

    But if "do you have an idea" means "can you do it for me", I'm sorry I have to say "no". Although I really like the Karma Bank plugin a lot and extending it is always a great experience, I don't have time to write any plugin right now. And if I would have the time, I would continue working on one of my unfinished plugins first.

    misantropist
  • edited February 14

    I found a primitive solution.

    I just want a little code.

    Those who have negative points can not donate.

    @x00

  • Don't have time time help you you can create plugin

    General idea of any transaction

            $karmaBank = new KarmaBankModel($userID);
            $balance = $KarmaBank->getBalance(); // you can create conditions based on avaialble balance
    ...
            $karmaBank->transaction('Some description...', $amount)); // amount could be negative or positive
    

    grep is your friend.

    misantropist
  • edited February 16

    I do not know coding.

    if this is a few lines of code for you. I can wait a few months for you to give me the code. (when you are available)


    Only users with negative points can not vote.

    I just want this.

  • The karma score on my forum represents real money. this is not an arbitrary request.

  • Sorry can't help you. I provide the software as is, this is beyond the scope of this project. It is possible to create plugin that does what you want you can also fork the project should that not be sufficient.

    grep is your friend.

Sign In or Register to comment.