Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 21, 2013, 04:59:19 am

Login with username, password and session length
Members
Total Members: 10763
Latest: sora
Stats
Total Posts: 32360
Total Topics: 5476
Online Today: 48
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 39
Total: 39
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: KARMA Badge  (Read 702 times)
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« on: August 09, 2012, 01:49:07 pm »

My users are getting the karma badge automatically when they first sign in.  I am guessing this is because I use the advanced reputation mod that starts everyone with 100 karma points.  I'd like to set that limit from 0 to 101 so they get the badge when someone gives them karma rather than up front...

I found this line:

Code:
if ($memberContext[$memberID]['karma']['good'] != 0 && !in_array($badgeAction,$currentBadges))

Would I be correct in assuming I could change that 0 to 101 to accomplish what I am looking to do?

Thanks!
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #1 on: August 10, 2012, 03:04:41 pm »

Oh... and to be clear... the advanced rep mod does use the "stock" karma string... but like I said,  I have it starting folks with 100 karma to begin with.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10991


View Profile
« Reply #2 on: August 10, 2012, 03:23:40 pm »

I would change != 0 to > 100
I think that would work.
Logged
FrizzleFried
Badge Awards Member
Full Member
*****
Offline Offline

Posts: 128



View Profile
« Reply #3 on: August 10, 2012, 04:29:05 pm »

Yeah... that works... sort of.  Unfortunately the Advanced Rep System also gives karma for posting... so as soon as I posted while testing my karma went to 102 from 100 and... welp,  I got the karma badge.

Bummer... maybe I will just change it to 200 and in the description change it to "Recipient of this badge has earned 200 Karma Points or more" or something generic...
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 12:22:02 am]

[Today at 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.352 seconds with 19 queries.