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 can I reset Karma?
xVal
New
I uninstalled and deleted cache but it still shows. I need it to be =zero for everyone.
Vanilla: 2.0.18.8
Theme: Dark Mist
Tagged:
0
Best Answer
-
x00 MVP
Simplest way if you want completely start again is to disable the plugin drop all tables with GDN_Karma (except maybe KarmaRules), then enable the plugin. Just be careful it is always worth doing a database dump, if you are deleting tables you are not sure about.
You can post under the plugin, go to the plugin page then click on "ask a question" tha way the author is more likely to see it. Remember that for next time.
grep is your friend.
7
Answers
Simplest way if you want completely start again is to disable the plugin drop all tables with GDN_Karma (except maybe KarmaRules), then enable the plugin. Just be careful it is always worth doing a database dump, if you are deleting tables you are not sure about.
You can post under the plugin, go to the plugin page then click on "ask a question" tha way the author is more likely to see it. Remember that for next time.
grep is your friend.
@x00 thanks for your answer. I deleted all GDN_Karma (including Rules) and it all resets to zero until users log in. After that it shows up random karma for each one. Can it have something to do with the "Consolidate" plugin?
Something is not right, you are definitely deleting all the karma tables?
Are you saying it changes when people login, and if you log out it reverts or it persists? Consolidate won't have any impact, you can easily isolate by disabling it.
I mean meta
QnACountAccept
andQnACountAcceptance
are recorded, so naturally it is going to reward based on rules based on those columns in the user table. Are you setting up the rules before they are loggin in? it may be workign to the expected behaviour. If you have CommentCount, etc user are goign be rewarded when the rule is met.What does it say in the karma balance? In each user profile it records transactions.
grep is your friend.
@x00 this is what I get:
#1090 - You can't delete all columns with ALTER TABLE; use DROP TABLE instead
So I go to Operations > Delete the table (DROP) and it lets me delete all tables. But still no results. Karma is being added whenever members log-in, like this for instance:
If I set 3 rules: Every 1 comment 1 karma, every 1 discussion 1 karma, every 1 view 1 karma, most members get 3 karma automatically (1c+1v+1d), but some members get more or less (or even zero) when they first log-in.
I have no idea what I'm doing wrong here.
I have to set at least 1 rule to enable the plugin, so lets say I do every 1 discussion 1 karma.. what happens is when a member logs in (without posting anything) he still gets something like 1 karma, or 3, or 5 etc
Darn, I think I f*cked up. This is what I get when I enable the Karma plugin now:
This is the highlighted line:
386: $MapHash = 'context:'.GetValue($ContextType, array_flip(self::$ContextOrder)).''.$Extension.''.$MapHash;
I would delete cache/*.ini and see if it solves something
There was an error rendering this rich post.
Already tried that with no result.
a guess.... (in this exact order)
drop 'KarmaRulesTally'
remove these two columns from user table
QnACountAccept
QnACountAcceptance
goto you config.php
delete every reference to
$Configuration['Plugins']['KarmaBank']
then enable karma plugin.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine thanks, it worked in the sense it doesn't bonk when I enable the karma plugin, but we're back to square 1..
I added 3 rules as follows: every 1 comment, view & discussion award 1.50, 0.50 & 3.00 respectively. Now, when I refresh my profile I have 5.00 karma (it awarded me 1.5+0.5+3.0=5.00) although I didn't do any activity.
CountDiscussions Every 1.00 December 7, 2013 2:00AM 3.00
CountComments Every 1.00 December 7, 2013 2:00AM 1.50
CountVisits Every 1.00 December 7, 2013 2:00AM 0.50
Starting Balance December 7, 2013 2:00AM 0.00
Balance5.00
Update: I asked a moderator to log-in and he was awarded 2.00 (1 comment & 1 visit) - no idea why it's behaving like this... Note that consolidate is still disabled.
All other members that are currently offline (not logged in since I re-enabled the plugin) have 0 balance (surely until they login once).
An interesting observation is the mod has never opened a discussion (only commented) - maybe that's why he wasn't awarded 3.00 (for 1 discussion) while I was (since I have opened a lot of threads)... dunno what to make of this though.
The autoloader error is a deprecation error.
Nothing to worry about in my opinion. Just disable debug mode.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Blank everything out again. just add 1 rule to make life simpler. and see if you can debug from there. if the rule works then remove it blank out database - try another rule,etc .
try 1 for every discussion - seems like the easiest to debug.
And I wouldn't choose views (to make life easier).
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Alright, I'm on it!
should be all right enabling consolidate - probably had no impact either way.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Update: I've gone through all the steps again, added 1 simple rule: for every 1 discussion award 1 karma, and now when I go to my profile it shows a grand total of 1.
Note that starting balance was preset to 0.
My mod logged in and his balance is 0.
create a new user. don't make a discussion with that user. see what they get.
I'd suggest you start a new discussion under the karma plugin. with your issues.
now that you know how to reset (purge tables and entries as if there was no karma plugin).
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Done, it shows 0 for new user with no discussions.
I asked another member to log-in and it shows 1 in his balance.
I've enabled consolidate now and karmabank is gone altogether. Deleted cache and noticed all rules are gone, plugin is disabled as a result.
I'd suggest you start a new discussion under the karma plugin. with your issues.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.