Advertisement:

Author Topic: Increase Post Count With Karma  (Read 25287 times)

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,524
  • Young and Foolish
    • SimplePortal
Increase Post Count With Karma
« 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:

Code: [Select]
// Figure out where to go back to.... the topic?
Replace:

Code: [Select]
// 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?
« Last Edit: August 18, 2008, 11:32:09 AM by H »
Former SMF Core Developer | My Mods | SimplePortal

Offline waruna

  • Jr. Member
  • **
  • Posts: 241
  • Gender: Female
  • I am what i am
Re: Increase Post Count With Karma
« Reply #1 on: January 29, 2010, 02:44:30 PM »
Cant understand this. If 1 karma is given, then the post will increase by how much?
Trust of Lust

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Increase Post Count With Karma
« Reply #2 on: January 29, 2010, 02:47:13 PM »
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

Offline waruna

  • Jr. Member
  • **
  • Posts: 241
  • Gender: Female
  • I am what i am
Re: Increase Post Count With Karma
« Reply #3 on: January 29, 2010, 02:52:22 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

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Increase Post Count With Karma
« Reply #4 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

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

Offline Alex - A2Hosting

  • Jr. Member
  • **
  • Posts: 258
Re: Increase Post Count With Karma
« Reply #5 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?
Alex - alex@a2hosting.com

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Increase Post Count With Karma
« Reply #6 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.

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

Offline xpubstargamingx

  • Jr. Member
  • **
  • Posts: 170
Re: Increase Post Count With Karma
« Reply #7 on: September 18, 2010, 03:20:59 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

Offline hsimpson

  • Semi-Newbie
  • *
  • Posts: 21
Re: Increase Post Count With Karma
« Reply #8 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.
I'm in no condition to drive...wait! I shouldn't listen to myself, I'm drunk!

Offline JeffProxy

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
Re: Increase Post Count With Karma
« Reply #9 on: November 21, 2015, 02:32:50 AM »
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