News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Increase Post Count With Karma

Started by [SiNaN], August 18, 2008, 11:31:46 AM

Previous topic - Next topic

[SiNaN]

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?

Former SMF Core Developer | My Mods | SimplePortal

waruna

Cant understand this. If 1 karma is given, then the post will increase by how much?
Trust of Lust

Kays

The post count will increase by 1 also.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

waruna

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?
Trust of Lust

Kays

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

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

HostDash

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?

Kays

You don't use your karma. But rather when you give karma to someone your post count will increase.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

xpubstargamingx

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

hsimpson

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.
I'm in no condition to drive...wait! I shouldn't listen to myself, I'm drunk!

JAC9ja

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
https://jac9ja.ng Everything SEO >> Tech >> Crypto

Advertisement: