Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

how to change karma display from decimal to integer

jeongweejeongwee Vanilla version 2.6 ✭✭

how to change karma display from decimal to integer

Comments

  • good question

    in views/karmabank.php

    change each

    T("%01.2f")

    to

    T('KarmaBank.NumberFormat', "%01.2f")

    then in your locale create a definition

    $Definition['KarmaBank.NumberFormat'] = '%d';

    I'll make sure then next version applies the changes.

    grep is your friend.

  • jeongweejeongwee Vanilla version 2.6 ✭✭
    edited July 2013

    thx man .

    and i had 3 suggtion to this plugin.

    1.is it possible to make this plugin relative to i like this plguin, so ppl can set a role to transfer likes to karma.

    2.is it possible to make a bonus karma option,so admin and mod can give a bonus karma to those topic or comments which had a good contents.

    (1-2 improve the sitckness of the fourm,also improve the quality of replies. once member can gain

    karma for these way,they gonna more srs for writing their replies or discussions,and if ppl wants more karma they gonna pay more attemption to the forum.)

    3.how about also shows the karma at discusstion owner.

    im bad at english see picture.

    image

  • I'm not taking request right now sorry.

    grep is your friend.

  • You can already give bonus karma.

    grep is your friend.

  • jeongweejeongwee Vanilla version 2.6 ✭✭

    how do i give bonus karma, i don see anywhere i can click....

  • go to the user balance in the profile.

    You can give the permission Plugins.KarmaBank.RewardTax to roles you want to have this privilege.

    grep is your friend.

  • jeongweejeongwee Vanilla version 2.6 ✭✭

    i alrdy turn on the permission for the admin and mod ,but where i can give a bonus = = icant find it ...sry im noob

  • x00x00 MVP
    edited July 2013

    go to the user's profile by clicking on their username, then click on the KarmaBank tab.

    then you can see the fields for reward / tax at the bottom.

    grep is your friend.

  • jeongweejeongwee Vanilla version 2.6 ✭✭

    k thx,i found it..not intuitive but works.
    hope u can add it relative to the i like this plguin in the future.

  • changes like that have to be sponsored.

    grep is your friend.

  • here is a new version with namespaced locales

    http://vanillaforums.org/addon/karmabank-plugin-0.9.6.7b

    in you locale put

    $Definition['KarmaBank.NumberFormat'] = '%d';

    grep is your friend.

  • jeongweejeongwee Vanilla version 2.6 ✭✭

    i updated new version and added the $Definition['KarmaBank.NumberFormat'] = '%d'; to /www/locales/vf_zh_CN/site_core.php and deleted all ini files from /cache.then i refresh the site,
    but the number still decimal not a integer.
    btw im using 2.1b1 and heres a question i asked earlier http://vanillaforums.org/discussion/24272/views-comments-date-not-translating#latest
    maybe this is same problem?

  • x00x00 MVP
    edited July 2013

    you can put it in conf/locale.php

    <?php if (!defined('APPLICATION')) exit();
    $Definition['KarmaBank.NumberFormat'] = '%d';
    $Definition['KarmaBank.NumberFormatKarma'] = '%d Karma';
    

    btw 2.1 is not officially supported.

    grep is your friend.

  • grep is your friend.

  • aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    Awesome @x00

    Must respect your reflexes.

    There was an error rendering this rich post.

  • Agreed, this plugin ties my whole forum together

Sign In or Register to comment.