Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Karma Bank

x00x00 MVP
edited February 2012 in Questions
This discussion is related to the Karma Bank addon.

This is reputation linked virtual currency. Simple rules can be used to reward based on various user meta meeting certain conditions. This is only the beginning so bare with.

This plugin anticipates all the reputation based addons, like badges that will come out, and is implemented in the most flexible way, so that it doesn't have to rely on hooks being there, instead it create virtual event by listening to user meta.

It will also be able to be extended. Have a look at KarmaBankMetaMap event in the MetaMap method for hints. CheckKarma is where the magic happens.

Simple payment API coming shortly.

Please sponsor any features you would like.

grep is your friend.

Toddbh8vnlessirey

Comments

  • 422422 Developer MVP

    Ooh looks ace will check it out.

    422 Real Estate Australia , now open Check it out

  • I get an error message saying.. "Incorrect table definition; there can be only one auto column and it must be defined as a key|Gdn_Database|Query|alter table GDN_KarmaRules add RuleID int not null auto_increment"

  • what's a great plugin! Cool! Thanks so much, x00

  • x00x00 MVP
    edited February 2012

    x4135 said: I get an error message saying.. "Incorrect table definition; there can be only one auto column and it must be defined as a key|Gdn_Database|Query|alter table GDN_KarmaRules add RuleID int not null auto_increment"

    I try to avoid this by

        if(!Gdn::Structure()->Table('KarmaRules')->ColumnExists('RuleID'))
            Gdn::Structure()
                ->Table('KarmaRules')
                ->PrimaryKey('RuleID')
                ->Set();
    

    Unfortunately unlike most structure changes it can't check to see if the column already exists, and just be silent. So I will have to drop whatever key it has.

    For now set you error low, debug off.

    grep is your friend.

  • the problem is now fixed

    grep is your friend.

  • There are the associated locale definitions:

    Enabled
    Disabled
    Meta
    Make transaction of
    Karma
    %s\'s Karma Balance
    Transaction
    Date
    Balance
    You do not have any Karma yet.
    Reward / Tax
    Karma Bank
    Settings/Rules
    Karma Bank Settings
    Karma Bank

    You can also translate specific rules like:

    Starting Balance
    CountComments Every 2
    

    As well as the default date format, of course.

    grep is your friend.

  • I've made the translation of transaction type bit easier/more versalile

    So instead of translating each rule e.g. CountComments Every 2 you can translate CountComments and Every.

    To change the order of the words set like so

    $Definition['CountComments.Order']='%3$s %2$s %1$s';

    grep is your friend.

  • x00x00 MVP
    edited February 2012

    If you are less than v0.9.4b, unfortunately you are goign to have to drop all Gnd_Karma* tables. before upgrading. The recreate your rule. Sorry there is no way round this.

    grep is your friend.

  • edited February 2012

    Great job guys!

    Is there a way to show the Karma balance inside discussions along with other meta info such as how the show post count plug-in works?

  • yes it is possible, that plugin gives you an idea of how you might do it in a plugin or themehook. Would you like to sponsor a check box option to include it, in this plugin?

    I'm also offering user permissions (some people might not want their karma to be public), and a bunch of other stuff that other people might be interested in sponsoring.

    Obviously the more people that sponsor, is good, and also you are contributing something to the development.

    grep is your friend.

  • I'll sponsor it depending on the overall quality of the plugin or themehook.

    Great idea to have an option to show or hide karma balance! But in the meantime, considering the plug-in is new and most people are starting off with the default balance... this isn't a priority, IMO.

    Everything about this plug-in is exciting :)

  • The quality should be fine you are simply add to the user meta, by I away honour every job, to spec.

    grep is your friend.

  • Could we have a highlight of what's coming next? :)

  • x00x00 MVP
    edited February 2012

    It depends on the direction people want. Obviously I'm going to develop a simple payment API, but I won't start on that till an applicable related feature/project comes up.

    grep is your friend.

  • This is really good stuff, mate. I am looking forward to badge integration.

  • Very nice plugin indeed!!!!

    Feature Requested : Add a description every time you reward/tax people!

    Thanks a lot & keep up the good work, mate!

  • could you please add a feature to karma bank that lets users transfer karma to eachother? Oh and also mabie interigate it with one of the file atachment addons to let users buy and sell atachments with karma if they wish. :) that would be so awesome! Thanks if you read and consider this. Does anyone else think this is a good idea?

  • hungle88 said: Very nice plugin indeed!!!!

    Feature Requested : Add a description every time you reward/tax people!

    Thanks a lot & keep up the good work, mate!

    good idea! :) I second this

  • x00x00 MVP
    edited March 2012

    connorbp said:

    hungle88 said: Very nice plugin indeed!!!!

    Feature Requested : Add a description every time you reward/tax people!

    Thanks a lot & keep up the good work, mate!

    good idea! :) I second this

    I this is being sponsored and is imminent

    grep is your friend.

  • connorbp said: could you please add a feature to karma bank that lets users transfer karma to eachother? Oh and also mabie interigate it with one of the file atachment addons to let users buy and sell atachments with karma if they wish. :) that would be so awesome! Thanks if you read and consider this. Does anyone else think this is a good idea?

    Would you be interested in sponsoring this? The first could be done with a payment/transfer gateway. Maybe consider doing this first.

    Since attachment are not inherently private, it would make sense to create a market place first, would require developing of the payment API, product need to be preregistered. Then you could integrate file uploads, and their plug ins.

    grep is your friend.

  • ooo... cool well would sponsoring need money? I don't really have any right now... sorry.

  • for the file upload one it shouldn't be too hard to integrate it with your file upload plugin. as it is yours... that's the one i use any ways :P

  • lol if I had a penny every time someone says "it shouldn't be too hard"

    grep is your friend.

    candyman
  • I would like to be able for users to award karma or tax karma but also leave a comment on why they were doing so. Those comments would have to show up somewhere, maybe the Karma tab?

    boangs
  • zackluye said: This is really good stuff, mate. I am looking forward to badge integration.

    +1

  • SevMCSevMC
    edited April 2012

    Exellent plugin :D

  • Is there any way to change the "karmabank/" url without damaging its functionality?

  • I just have a problem: the karma rules are not being applied :( the users are not receiving karma anymore:

    Rules: Meta CountVisits Equals 1 Make transaction of 0.10 Decibels Remove Meta CountComments Equals 1 Make transaction of 0.40 Decibels Remove Meta CountDiscussions Equals 1 Make transaction of 0.80 Decibels Remove

  • Fixed, sorry XD

    The rules were wrong

Sign In or Register to comment.