Need Member Karma Table info for phpmyadmin (semi-urgent)

Started by Andrew Evenstar, November 15, 2010, 12:43:18 AM

Previous topic - Next topic

Andrew Evenstar

I'm such a freaking noob... I just meant to empty out the karma stats for all users... but I mistakenly executed: :drop" on the karmaGood & KarmaBad tables, which made my site unavailable.

I re-created the tables, but can someone tell me the exact values I need to enter for them?



Also... can someone tell me how to correctly remove all the karma points (negative & positive) from all members?

Thanks.

Jade Elizabeth

Hey :D

The official install says this for the two rows you broke so make sure yours reflect that :):
  karmaBad smallint(5) unsigned NOT NULL default '0',
  karmaGood smallint(5) unsigned NOT NULL default '0',


I think this should work out for you to change the karma of everyone :).
UPDATE `smf_members` SET `karmaGood` = 0

And

UPDATE `smf_members` SET `karmaBad` = 0


but if you already deleted the two fields and then put them back they should be empty. Maybe run the recount all totals maintenance?

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Andrew Evenstar


Jade Elizabeth

Lol thanks! :D

Glad I helped you out :D. Karma's something I use a lot. I use this query on my own forums when I add karma for competitions (you can use it to subtract too lol):

2.x:
UPDATE `smf_members` SET `karma_good` = (`karma_good` + '100') WHERE `id_member` IN (1,2,3)

1.x:
UPDATE `smf_members` SET `karmaGood` = (`karmaGood` + '100') WHERE `ID_MEMBER` IN (1,2,3)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: