Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: [SiNaN] on August 18, 2008, 11:31:46 AM

Title: Increase Post Count With Karma
Post by: [SiNaN] on August 18, 2008, 11:31:46 AM
Question: How can I modify the Karma function so that when a user gives a positive karma, his post count increases?
Original Topic: -

../Sources/Karma.php

Find:

// Figure out where to go back to.... the topic?

Replace:

// Increase the post count of the one gave the karma.
if($dir == 1)
updateMemberData($ID_MEMBER, array('posts' => '+'));

// Figure out where to go back to.... the topic?

Title: Re: Increase Post Count With Karma
Post by: waruna on January 29, 2010, 02:44:30 PM
Cant understand this. If 1 karma is given, then the post will increase by how much?
Title: Re: Increase Post Count With Karma
Post by: Kays on January 29, 2010, 02:47:13 PM
The post count will increase by 1 also.
Title: Re: Increase Post Count With Karma
Post by: waruna on January 29, 2010, 02:52:22 PM
Quote from: Kays on January 29, 2010, 02:47:13 PM
The post count will increase by 1 also.

I see,  it's you again  ;D, thanks  ;) . Is it possible to set 1 karma = 100 posts as well as -1 karma = minus 100 posts?
Title: Re: Increase Post Count With Karma
Post by: Kays on January 29, 2010, 03:11:29 PM
Yep, you can't escape me. :P

This won't work for something like that. Take a look at the Advanced Reputation mod.

http://custom.simplemachines.org/mods/index.php?mod=1129
Title: Re: Increase Post Count With Karma
Post by: HostDash on February 09, 2010, 01:01:02 PM
Quick question:

When somebody uses 1 karma to gain 1 post does that 1 karma go down? Or  will it stay as they got 1 karma?
Title: Re: Increase Post Count With Karma
Post by: Kays on February 09, 2010, 01:10:45 PM
You don't use your karma. But rather when you give karma to someone your post count will increase.
Title: Re: Increase Post Count With Karma
Post by: xpubstargamingx on September 18, 2010, 03:20:59 PM
Quote from: Kays on January 29, 2010, 03:11:29 PM
Yep, you can't escape me. :P

This won't work for something like that. Take a look at the Advanced Reputation mod.

http://custom.simplemachines.org/mods/index.php?mod=1129

I installed this Mod and yeah I f*cked something up pretty bad. I tried installing this Mod and it has rendered the forum useless. Maybe I shouldn't take these types of things into my own hands ever again. Lol. Learned my lesson. I have no idea where to go from here.

I put the forum in Maintenance Mode until this issue has been resolved.

Here is the issues I am having. No matter what you click on the following error comes up...

Unknown column 'mem.karma_disabled' in 'field list'
File: /home/content/p/u/b/pubstargaming/html/forum/Sources/Load.php
Line: 897
Title: Re: Increase Post Count With Karma
Post by: hsimpson on September 23, 2010, 04:56:14 PM
I'm new to SMF but so I can't comment on your problem just want to say this: a modification on a live site without back-up (it seems) is not really smart. Modifications should be tested wisely before you put them in a live site.
Title: Re: Increase Post Count With Karma
Post by: JAC9ja on November 21, 2015, 02:32:50 AM
Quote from: Kays on January 29, 2010, 03:11:29 PM
Yep, you can't escape me. :P

This won't work for something like that. Take a look at the Advanced Reputation mod.

http://custom.simplemachines.org/mods/index.php?mod=1129
Will that Karma mod still work on the latest version of SMF