Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: [SiNaN] in August 18, 2008, 11:31:46 VORMITTAG

Titel: Increase Post Count With Karma
Beitrag von: [SiNaN] in August 18, 2008, 11:31:46 VORMITTAG
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?

Titel: Re: Increase Post Count With Karma
Beitrag von: waruna in Januar 29, 2010, 02:44:30 NACHMITTAGS
Cant understand this. If 1 karma is given, then the post will increase by how much?
Titel: Re: Increase Post Count With Karma
Beitrag von: Kays in Januar 29, 2010, 02:47:13 NACHMITTAGS
The post count will increase by 1 also.
Titel: Re: Increase Post Count With Karma
Beitrag von: waruna in Januar 29, 2010, 02:52:22 NACHMITTAGS
Zitat von: Kays in Januar 29, 2010, 02:47:13 NACHMITTAGS
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?
Titel: Re: Increase Post Count With Karma
Beitrag von: Kays in Januar 29, 2010, 03:11:29 NACHMITTAGS
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
Titel: Re: Increase Post Count With Karma
Beitrag von: HostDash in Februar 09, 2010, 01:01:02 NACHMITTAGS
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?
Titel: Re: Increase Post Count With Karma
Beitrag von: Kays in Februar 09, 2010, 01:10:45 NACHMITTAGS
You don't use your karma. But rather when you give karma to someone your post count will increase.
Titel: Re: Increase Post Count With Karma
Beitrag von: xpubstargamingx in September 18, 2010, 03:20:59 NACHMITTAGS
Zitat von: Kays in Januar 29, 2010, 03:11:29 NACHMITTAGS
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
Titel: Re: Increase Post Count With Karma
Beitrag von: hsimpson in September 23, 2010, 04:56:14 NACHMITTAGS
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.
Titel: Re: Increase Post Count With Karma
Beitrag von: JAC9ja in November 21, 2015, 02:32:50 VORMITTAG
Zitat von: Kays in Januar 29, 2010, 03:11:29 NACHMITTAGS
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